Browse files

Defer rake/contrib/sshpublisher require so basic tasks don't need the…

… full rake gem
  • Loading branch information...
1 parent 8ee0c59 commit 49ed45213607ed6ce7e6c13c319bf55f916a0ac4 @jeremy jeremy committed May 7, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 activeresource/Rakefile
View
3 activeresource/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_resource', 'version')
@@ -117,12 +116,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

0 comments on commit 49ed452

Please sign in to comment.