Method: Av#run
- Defined in:
- lib/av.rb
#run(line, codes = [0]) ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'lib/av.rb', line 27 def run line, codes = [0] ::Av.log("Running command: #{line}") begin Cocaine::CommandLine.new(line, "", expected_outcodes: codes).run rescue Cocaine::ExitStatusError => e raise Av::CommandError, "error while running command #{line}: #{e}" end end |