Sha256: 02e3ebc2bc16628709821ad82484ab3dae3f393182a04e485aafc73bc8382aef
Contents?: true
Size: 484 Bytes
Versions: 17
Compression:
Stored size: 484 Bytes
Contents
module SolrWrapper # Runs a command using popen (typically for MRI) class PopenRunner < Runner def run(stringio) exit_status = nil IO.popen(config.env, argument_list + [err: [:child, :out]]) do |io| if config.verbose? && !silence_output? IO.copy_stream(io, $stderr) else IO.copy_stream(io, stringio) end _, exit_status = Process.wait2(io.pid) end stringio.rewind exit_status end end end
Version data entries
17 entries across 17 versions & 2 rubygems