Module: Lynx::SystemOut

Defined in:
lib/lynx/system_out.rb

Class Method Summary collapse

Class Method Details

.run(command) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/lynx/system_out.rb', line 6

def self.run(command)
  stdout, stderr, status = Open3.capture3(command)
  unless status.success?
    raise(Lynx::Error, "Failed to perform: #{command} \n STDERR: #{stderr}")
  end
  stdout
end