diff options
author | Jamis Buck <jamis@37signals.com> | 2005-08-03 12:59:03 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2005-08-03 12:59:03 +0000 |
commit | 3fc8639b78417cffc112916537bb8249f8880394 (patch) | |
tree | 24489cd587460750f036f1fc491c9c698933562c /switchtower/Rakefile | |
parent | 44c64a612d3313b30a06f6f36e4260f53d4ed852 (diff) | |
download | rails-3fc8639b78417cffc112916537bb8249f8880394.tar.gz rails-3fc8639b78417cffc112916537bb8249f8880394.tar.bz2 rails-3fc8639b78417cffc112916537bb8249f8880394.zip |
Initial commit of the new switchtower utility
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1967 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'switchtower/Rakefile')
-rw-r--r-- | switchtower/Rakefile | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/switchtower/Rakefile b/switchtower/Rakefile new file mode 100644 index 0000000000..2e99a99244 --- /dev/null +++ b/switchtower/Rakefile @@ -0,0 +1,38 @@ +require 'rake' +require 'rake/testtask' +require 'rake/rdoctask' +require 'rake/gempackagetask' + +require "./lib/switchtower/version" + +SOFTWARE_NAME = "switchtower" +SOFTWARE_VERSION = SwitchTower::Version::STRING + +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__)}/#{SOFTWARE_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 |