aboutsummaryrefslogtreecommitdiffstats
path: root/railties/Rakefile
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2010-02-04 18:28:45 -0800
committerJeremy Kemper <jeremy@bitsweat.net>2010-02-04 18:28:45 -0800
commitc1785f32825431d30a5d826066d37dfb0403cd46 (patch)
treee7a0bf9efed0981e7e918bfebef393f02834a31b /railties/Rakefile
parent31f8a59c16d4a29553e2dbf891c891493fd138c0 (diff)
downloadrails-c1785f32825431d30a5d826066d37dfb0403cd46.tar.gz
rails-c1785f32825431d30a5d826066d37dfb0403cd46.tar.bz2
rails-c1785f32825431d30a5d826066d37dfb0403cd46.zip
Release using gemcutter gem:push tasks
Diffstat (limited to 'railties/Rakefile')
-rw-r--r--railties/Rakefile23
1 files changed, 5 insertions, 18 deletions
diff --git a/railties/Rakefile b/railties/Rakefile
index ea0b8ef8fb..808e39f887 100644
--- a/railties/Rakefile
+++ b/railties/Rakefile
@@ -4,6 +4,7 @@ require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
+require 'rake/gemcutter'
require 'date'
require 'rbconfig'
@@ -90,12 +91,10 @@ end
# Publishing -------------------------------------------------------
-desc "Publish the rails gem"
-task :pgem => [:gem] 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
+Rake::Gemcutter::Tasks(spec)
+
+desc "Release to gemcutter"
+task :release => [:package, 'gem:push']
desc "Publish the guides"
task :pguides => :generate_guides do
@@ -105,15 +104,3 @@ task :pguides => :generate_guides do
Rake::SshFilePublisher.new("web.rubyonrails.org", "/u/sites/guides.rubyonrails.org/public", "pkg", "guides.gz").upload
`ssh web.rubyonrails.org 'cd /u/sites/guides.rubyonrails.org/public/ && tar -xvzf guides.gz && mv guides/output/* . && rm -rf guides*'`
end
-
-desc "Publish the release files to RubyForge."
-task :release => [ :package ] do
- require 'rake/contrib/rubyforgepublisher'
- require 'rubyforge'
-
- packages = %w( gem ).collect{ |ext| "pkg/#{PKG_NAME}-#{PKG_VERSION}.#{ext}" }
-
- rubyforge = RubyForge.new
- rubyforge.login
- rubyforge.add_release(PKG_NAME, PKG_NAME, "REL #{PKG_VERSION}", *packages)
-end