Module: Lambom::ShellMixin
- Included in:
- Converger
- Defined in:
- lib/lambom/shell_mixin.rb
Instance Method Summary collapse
Instance Method Details
#run_cmd(*cmd) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/lambom/shell_mixin.rb', line 5 def run_cmd(*cmd) puts "RUN_CMD: #{cmd}" if $debug com = Mixlib::ShellOut.new(cmd) com.run_command com.error! puts "salida: #{com.stdout}" if $debug com.stdout end |