diff options
| author | root <root@hackathon1-repo.usersys.redhat.com> | 2008-06-19 15:36:54 -0400 |
|---|---|---|
| committer | root <root@hackathon1-repo.usersys.redhat.com> | 2008-06-19 15:36:54 -0400 |
| commit | cf796141ac01c866e81663f20699ccd56ce2d50b (patch) | |
| tree | 9061bb3c95d638bfed4d880db21e49f9f36cf1ec /cloud/tasks | |
| parent | 4f244d65c5c2e4ffb4b38e00baa5f83de89c20d8 (diff) | |
| download | tools-cf796141ac01c866e81663f20699ccd56ce2d50b.tar.gz tools-cf796141ac01c866e81663f20699ccd56ce2d50b.tar.xz tools-cf796141ac01c866e81663f20699ccd56ce2d50b.zip | |
Moved the cloud daemon to cloudmasterd to give it a better name
Diffstat (limited to 'cloud/tasks')
| -rw-r--r-- | cloud/tasks/deployment.rake | 34 | ||||
| -rw-r--r-- | cloud/tasks/environment.rake | 7 | ||||
| -rw-r--r-- | cloud/tasks/rspec.rake | 21 | ||||
| -rw-r--r-- | cloud/tasks/website.rake | 17 |
4 files changed, 0 insertions, 79 deletions
diff --git a/cloud/tasks/deployment.rake b/cloud/tasks/deployment.rake deleted file mode 100644 index 2f43742..0000000 --- a/cloud/tasks/deployment.rake +++ /dev/null @@ -1,34 +0,0 @@ -desc 'Release the website and new gem version' -task :deploy => [:check_version, :website, :release] do - puts "Remember to create SVN tag:" - puts "svn copy svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/trunk " + - "svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/tags/REL-#{VERS} " - puts "Suggested comment:" - puts "Tagging release #{CHANGES}" -end - -desc 'Runs tasks website_generate and install_gem as a local deployment of the gem' -task :local_deploy => [:website_generate, :install_gem] - -task :check_version do - unless ENV['VERSION'] - puts 'Must pass a VERSION=x.y.z release version' - exit - end - unless ENV['VERSION'] == VERS - puts "Please update your version.rb to match the release version, currently #{VERS}" - exit - end -end - -desc 'Install the package as a gem, without generating documentation(ri/rdoc)' -task :install_gem_no_doc => [:clean, :package] do - sh "#{'sudo ' unless Hoe::WINDOZE }gem install pkg/*.gem --no-rdoc --no-ri" -end - -namespace :manifest do - desc 'Recreate Manifest.txt to include ALL files' - task :refresh do - `rake check_manifest | patch -p0 > Manifest.txt` - end -end
\ No newline at end of file diff --git a/cloud/tasks/environment.rake b/cloud/tasks/environment.rake deleted file mode 100644 index 691ed3b..0000000 --- a/cloud/tasks/environment.rake +++ /dev/null @@ -1,7 +0,0 @@ -task :ruby_env do - RUBY_APP = if RUBY_PLATFORM =~ /java/ - "jruby" - else - "ruby" - end unless defined? RUBY_APP -end diff --git a/cloud/tasks/rspec.rake b/cloud/tasks/rspec.rake deleted file mode 100644 index 2415fa4..0000000 --- a/cloud/tasks/rspec.rake +++ /dev/null @@ -1,21 +0,0 @@ -begin - require 'spec' -rescue LoadError - require 'rubygems' - require 'spec' -end -begin - require 'spec/rake/spectask' -rescue LoadError - puts <<-EOS -To use rspec for testing you must install rspec gem: - gem install rspec -EOS - exit(0) -end - -desc "Run the specs under spec/models" -Spec::Rake::SpecTask.new do |t| - t.spec_opts = ['--options', "spec/spec.opts"] - t.spec_files = FileList['spec/**/*_spec.rb'] -end diff --git a/cloud/tasks/website.rake b/cloud/tasks/website.rake deleted file mode 100644 index 93e03fa..0000000 --- a/cloud/tasks/website.rake +++ /dev/null @@ -1,17 +0,0 @@ -desc 'Generate website files' -task :website_generate => :ruby_env do - (Dir['website/**/*.txt'] - Dir['website/version*.txt']).each do |txt| - sh %{ #{RUBY_APP} script/txt2html #{txt} > #{txt.gsub(/txt$/,'html')} } - end -end - -desc 'Upload website files to rubyforge' -task :website_upload do - host = "#{rubyforge_username}@rubyforge.org" - remote_dir = "/var/www/gforge-projects/#{PATH}/" - local_dir = 'website' - sh %{rsync -aCv #{local_dir}/ #{host}:#{remote_dir}} -end - -desc 'Generate and upload website files' -task :website => [:website_generate, :website_upload, :publish_docs] |
