Module: RoRoSupport::Bash
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/roro_support/bash.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#run(bash) ⇒ Object
5 6 7 8 |
# File 'lib/roro_support/bash.rb', line 5 def run(bash) result = eval "`/bin/bash -c '#{bash}'`" print result.gsub(/.+\_.+\.rb/, '') end |