Skip to content

Instantly share code, notes, and snippets.

@beakr
Created May 12, 2012 22:43
Show Gist options
  • Save beakr/2669543 to your computer and use it in GitHub Desktop.
Save beakr/2669543 to your computer and use it in GitHub Desktop.
Function that uses system() for shell commands
# 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