You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by do...@apache.org on 2013/10/16 03:47:22 UTC

svn commit: r1532620 - /buildr/trunk/rakelib/release.rake

Author: donaldp
Date: Wed Oct 16 01:47:22 2013
New Revision: 1532620

URL: http://svn.apache.org/r1532620
Log:
Improve the error handling around gem push actions

Modified:
    buildr/trunk/rakelib/release.rake

Modified: buildr/trunk/rakelib/release.rake
URL: http://svn.apache.org/viewvc/buildr/trunk/rakelib/release.rake?rev=1532620&r1=1532619&r2=1532620&view=diff
==============================================================================
--- buildr/trunk/rakelib/release.rake (original)
+++ buildr/trunk/rakelib/release.rake Wed Oct 16 01:47:22 2013
@@ -64,7 +64,14 @@ task 'release' => %w{setup-local-site-sv
     files = FileList["_release/#{spec.version}/dist/*.{gem}"]
     files.each do |f|
       puts "Push gem #{f} to RubyForge.org ... "
-      `gem push #{f}`
+      sh 'gem', 'push', f do |ok, res|
+          if ok
+            puts "[X] Pushed gem #{File.basename(f)} to Rubyforge.org"
+          else
+            puts 'Could not push gem, please do it yourself!'
+            puts %{  gem push #{f}}
+          end
+        end
     end
     puts '[X] Pushed gems to Rubyforge.org'
   end.call