Permalink
Browse files

Added rake_command helper and switch publish to gemcutter release

  • Loading branch information...
nesquena committed Nov 18, 2009
1 parent 09b57dc commit 710d1242a792891a685b94702e6c25a5602f9be6
Showing with 7 additions and 3 deletions.
  1. +7 −3 Rakefile
View
@@ -13,20 +13,24 @@ gems = [
"padrino-routing",
"padrino"
]
+
+def rake_command(command)
+ sh "#{Gem.ruby} -S rake #{command}"
+end
%w(clean install gemspec build release).each do |task_name|
desc "Run #{task_name} for all projects"
task task_name do
gems.each do |dir|
- Dir.chdir(dir) { sh "#{Gem.ruby} -S rake #{task_name}" }
+ Dir.chdir(dir) { rake_command(task_name) }
end
end
end
-desc "Bump patch version and release all padrino gems"
+desc "Release all padrino gems"
task :publish do
gems.each do |dir|
- Dir.chdir(dir) { sh "#{Gem.ruby} -S rake version:bump:patch release" }
+ Dir.chdir(dir) { rake_command("gemcutter:release") }
end
end

0 comments on commit 710d124

Please sign in to comment.