Skip to content
Browse files

[padrino] Printing out messages during rake bump and publish tasks

  • Loading branch information...
1 parent f06f73c commit 570be9b1e2d18f1bf93cdae5f5814fb26d7c1869 @nesquena nesquena committed Dec 1, 2009
Showing with 6 additions and 0 deletions.
  1. +6 −0 Rakefile
View
6 Rakefile
@@ -72,20 +72,23 @@ namespace :version do
desc "Bump the gemspec by a major version."
task :major => :versionomy do
version = VERSIONER.bump!(:major)
+ puts "Bumping the major version to #{version.to_s}"
Rake::Task['gemspec'].invoke
Rake::Task['commit'].invoke("Bumped version to #{version.to_s}")
end
desc "Bump the gemspec by a minor version."
task :minor => :versionomy do
version = VERSIONER.bump!(:minor)
+ puts "Bumping the minor version to #{version.to_s}"
Rake::Task['gemspec'].invoke
Rake::Task['commit'].invoke("Bumped version to #{version.to_s}")
end
desc "Bump the gemspec by a patch version."
task :patch => :versionomy do |t|
version = VERSIONER.bump!(:patch)
+ puts "Bumping the patch version to #{version.to_s}"
Rake::Task['gemspec'].invoke
Rake::Task['commit'].invoke("Bumped version to #{version.to_s}")
end
@@ -98,6 +101,9 @@ end
desc "Release all padrino gems"
task :publish do
+ puts "Pushing to GitHub..."
+ system("git push")
+ puts "Pushing to Gemcutter..."
GEM_PATHS.each do |dir|
Dir.chdir(dir) { rake_command("gemcutter:release") }
end

0 comments on commit 570be9b

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