aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/Rakefile
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-11-08 18:58:08 -0500
committerJeremy Kemper <jeremy@bitsweat.net>2008-11-08 18:58:08 -0500
commita6d6a1c9aca612232228c1111be810736a26ab63 (patch)
tree2c32fbb21c77108dbaa8dca72304856e18f16149 /activesupport/Rakefile
parent5cc27f2b0302698ef517755df41f3212587bceb9 (diff)
downloadrails-a6d6a1c9aca612232228c1111be810736a26ab63.tar.gz
rails-a6d6a1c9aca612232228c1111be810736a26ab63.tar.bz2
rails-a6d6a1c9aca612232228c1111be810736a26ab63.zip
Move sshpublisher require into the rake tasks that use it so ruby 1.9 and macruby don't need the rake gem installed
Diffstat (limited to 'activesupport/Rakefile')
-rw-r--r--activesupport/Rakefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/activesupport/Rakefile b/activesupport/Rakefile
index 1961fb43cf..ccbab525ba 100644
--- a/activesupport/Rakefile
+++ b/activesupport/Rakefile
@@ -1,7 +1,6 @@
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
-require 'rake/contrib/sshpublisher'
require File.join(File.dirname(__FILE__), 'lib', 'active_support', 'version')
@@ -65,12 +64,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/as", "doc").upload
end