Permalink
Browse files

Move sshpublisher require into the rake tasks that use it so ruby 1.9…

… and macruby don't need the rake gem installed
  • Loading branch information...
1 parent 5cc27f2 commit a6d6a1c9aca612232228c1111be810736a26ab63 @jeremy jeremy committed Nov 8, 2008
Showing with 2 additions and 1 deletion.
  1. +2 −1 activesupport/Rakefile
View
@@ -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

0 comments on commit a6d6a1c

Please sign in to comment.