Module: RoSupport::Bash
- Defined in:
- lib/ro_support/bash.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#bash(command) ⇒ Object
3 4 5 6 7 |
# File 'lib/ro_support/bash.rb', line 3 def bash(command) result = `#{command}` print result result end |
#bashes(commands = []) ⇒ Object
9 10 11 12 13 |
# File 'lib/ro_support/bash.rb', line 9 def bashes(commands=[]) if !commands.empty? bash(commands.join " && ") end end |