Skip to content
Browse files

Selectively require rake sshpublisher so full gem isn't required

  • Loading branch information...
1 parent 9b852af commit dc9f53b05b650614520086ae780ca5e58efe65b1 @jeremy jeremy committed Apr 30, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 activerecord/Rakefile
3 activerecord/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_record', 'version')
require File.expand_path(File.dirname(__FILE__)) + "/test/config"
@@ -231,12 +230,14 @@ end
desc "Publish the beta gem"
task :pgem => [:package] do
+ require 'rake/contrib/sshpublisher'"", "/u/sites/gems/gems", "pkg", "#{PKG_FILE_NAME}.gem").upload
`ssh '/u/sites/gems/'`
desc "Publish the API documentation"
task :pdoc => [:rdoc] do
+ require 'rake/contrib/sshpublisher'"", "public_html/ar", "doc").upload

0 comments on commit dc9f53b

Please sign in to comment.
Something went wrong with that request. Please try again.