aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-05-07 18:27:50 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2009-05-07 18:27:50 -0700
commit49ed45213607ed6ce7e6c13c319bf55f916a0ac4 (patch)
tree602fccc6273f830fb8ff1a26c4b9b8d87bae4c4d /activeresource
parent8ee0c598dbe3f9fd133e85c69c6e43f62056646c (diff)
downloadrails-49ed45213607ed6ce7e6c13c319bf55f916a0ac4.tar.gz
rails-49ed45213607ed6ce7e6c13c319bf55f916a0ac4.tar.bz2
rails-49ed45213607ed6ce7e6c13c319bf55f916a0ac4.zip
Defer rake/contrib/sshpublisher require so basic tasks don't need the full rake gem
Diffstat (limited to 'activeresource')
-rw-r--r--activeresource/Rakefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/activeresource/Rakefile b/activeresource/Rakefile
index bf7bbb0201..c3cde26b6c 100644
--- a/activeresource/Rakefile
+++ b/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