public
Created — forked from thbar/system_bang.rb

Please don't use ruby 'system' without checking exit code

  • Download Gist
system_bang.rb
Ruby
1 2 3 4 5
module Kernel
def system!(command)
raise "Failed to launch command #{command}" unless system(command)
end
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.