aboutsummaryrefslogtreecommitdiffstats
path: root/switchtower/Rakefile
diff options
context:
space:
mode:
authorJamis Buck <jamis@37signals.com>2005-08-30 20:53:32 +0000
committerJamis Buck <jamis@37signals.com>2005-08-30 20:53:32 +0000
commit6b1864a048ffb9343d4658ec11c32494d7f038db (patch)
tree6c1ad3f9131d644afab6cc6188001cfb73775e33 /switchtower/Rakefile
parentbb7f60ca1cd191fd775fef261b4d2bc7af223604 (diff)
downloadrails-6b1864a048ffb9343d4658ec11c32494d7f038db.tar.gz
rails-6b1864a048ffb9343d4658ec11c32494d7f038db.tar.bz2
rails-6b1864a048ffb9343d4658ec11c32494d7f038db.zip
Move switchtower to the tools directory, to decouple it from rails
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2074 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'switchtower/Rakefile')
-rw-r--r--switchtower/Rakefile47
1 files changed, 0 insertions, 47 deletions
diff --git a/switchtower/Rakefile b/switchtower/Rakefile
deleted file mode 100644
index 7a4e2c6351..0000000000
--- a/switchtower/Rakefile
+++ /dev/null
@@ -1,47 +0,0 @@
-require 'rake'
-require 'rake/testtask'
-require 'rake/rdoctask'
-require 'rake/gempackagetask'
-require 'rake/contrib/rubyforgepublisher'
-
-require "./lib/switchtower/version"
-
-PKG_NAME = "switchtower"
-PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
-PKG_VERSION = SwitchTower::Version::STRING + PKG_BUILD
-PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
-
-desc "Default task"
-task :default => [ :test ]
-
-desc "Build documentation"
-task :doc => [ :rdoc ]
-
-Rake::TestTask.new do |t|
- t.test_files = Dir["test/**/*_test.rb"]
- t.verbose = true
-end
-
-GEM_SPEC = eval(File.read("#{File.dirname(__FILE__)}/#{PKG_NAME}.gemspec"))
-
-Rake::GemPackageTask.new(GEM_SPEC) do |p|
- p.gem_spec = GEM_SPEC
- p.need_tar = true
- p.need_zip = true
-end
-
-desc "Build the RDoc API documentation"
-Rake::RDocTask.new do |rdoc|
- rdoc.rdoc_dir = "doc"
- rdoc.title = "SwitchTower -- A framework for remote command execution"
- rdoc.options << '--line-numbers --inline-source --main README'
- rdoc.rdoc_files.include 'README'
- rdoc.rdoc_files.include 'lib/**/*.rb'
- rdoc.template = "jamis"
-end
-
-desc "Publish the beta gem"
-task :pgem => [:package] do
- Rake::SshFilePublisher.new("davidhh@wrath.rubyonrails.org", "public_html/gems/gems", "pkg", "#{PKG_FILE_NAME}.gem").upload
- `ssh davidhh@wrath.rubyonrails.org './gemupdate.sh'`
-end \ No newline at end of file