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, user = 'root', timeout = 150) ⇒ Object



5
6
7
8
9
# File 'lib/lavanda.rb', line 5

def run(cmd, user = 'root', timeout = 150)
  out, _lo, _rem, code = test_and_store_results_together(cmd, user, timeout)
  raise "FAIL: command  #{cmd} returned #{code}. output : #{out}" if code != 0
  [out, code]
end