more breakout for feature

This commit is contained in:
rkiel
2015-06-06 07:05:30 -04:00
parent 71f7a91065
commit 863a641e26
5 changed files with 90 additions and 56 deletions

23
lib/shared/runnable.rb Normal file
View File

@@ -0,0 +1,23 @@
module Shared
module Runnable
def run_cmd ( cmd, fallback_branch = current_branch )
puts
puts cmd
success = system cmd
unless success
system "git checkout #{fallback_branch}"
error "(see above)"
end
puts
end
def error ( msg )
puts
puts "ERROR: #{msg}"
puts
exit
end
end
end