Created
January 23, 2012 17:40
-
-
Save thbar/1664439 to your computer and use it in GitHub Desktop.
Please don't use ruby 'system' without checking exit code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Kernel | |
def system!(command) | |
raise "Failed to launch command #{command}" unless system(command) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment