Module: LavandaBasic
- Defined in:
- lib/lavanda.rb
Overview
this module monkeypatch some basic commands from twopence
Instance Method Summary collapse
Instance Method Details
#run(cmd, fatal = true, timeout = 200, user = 'root') ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/lavanda.rb', line 5 def run(cmd, fatal = true, timeout = 200 , user = 'root') out, _lo, _rem, code = test_and_store_results_together(cmd, user, timeout) if fatal raise "FAIL: #{cmd} returned #{code}. output : #{out}" if code != 0 end [out, code] end |