Created
May 12, 2012 22:43
-
-
Save beakr/2669543 to your computer and use it in GitHub Desktop.
Function that uses system() for shell commands
This file contains hidden or 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
# Rake's sh() can have a negative effect by printing the given | |
# command before running it. (see https://gist.github.com/2669372) | |
# This can look pretty ugly. Luckily, using system(), you can write tyour own method to avoid this. | |
def sh(code) | |
system(code) # Simple. | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment