Skip to content

Commit

Permalink
Move sshpublisher require into the rake tasks that use it so ruby 1.9…
Browse files Browse the repository at this point in the history
… and macruby don't need the rake gem installed
  • Loading branch information
jeremy committed Nov 8, 2008
1 parent 5cc27f2 commit a6d6a1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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')

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit a6d6a1c

Please sign in to comment.