Method: Fauxpaas::PassthroughRunner#run

Defined in:
lib/fauxpaas/passthrough_runner.rb

#run(command) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/fauxpaas/passthrough_runner.rb', line 13

def run(command)
  Open3.popen2e(command) do |_stdin, output, thread|
    while line = output.gets
      stream.puts line
    end
    exit_status = thread.value
  end
end