diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-04-30 21:02:11 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-04-30 21:02:11 -0700 |
commit | 7a7382b2136cea1124d466a1d9093c89a0851d31 (patch) | |
tree | 6b57f5712d0fdb46803a0cee0905b4b0f27db21c | |
parent | 509c389bf8093d7995a52470c27c221adc972796 (diff) | |
download | rails-7a7382b2136cea1124d466a1d9093c89a0851d31.tar.gz rails-7a7382b2136cea1124d466a1d9093c89a0851d31.tar.bz2 rails-7a7382b2136cea1124d466a1d9093c89a0851d31.zip |
Selectively require rake sshpublisher so full gem isn't required
-rw-r--r-- | activerecord/Rakefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/Rakefile b/activerecord/Rakefile index b50008c971..5905c67e29 100644 --- a/activerecord/Rakefile +++ b/activerecord/Rakefile @@ -4,7 +4,6 @@ require 'rake/testtask' require 'rake/rdoctask' require 'rake/packagetask' require 'rake/gempackagetask' -require 'rake/contrib/sshpublisher' require File.join(File.dirname(__FILE__), 'lib', 'active_record', 'version') require File.expand_path(File.dirname(__FILE__)) + "/test/config" @@ -231,12 +230,14 @@ end desc "Publish the beta gem" task :pgem => [:package] do + require 'rake/contrib/sshpublisher' Rake::SshFilePublisher.new("gems.rubyonrails.org", "/u/sites/gems/gems", "pkg", "#{PKG_FILE_NAME}.gem").upload `ssh gems.rubyonrails.org '/u/sites/gems/gemupdate.sh'` end desc "Publish the API documentation" task :pdoc => [:rdoc] do + require 'rake/contrib/sshpublisher' Rake::SshDirPublisher.new("wrath.rubyonrails.org", "public_html/ar", "doc").upload end |