class SolrWrapper::PopenRunner
Runs a command using popen (typically for MRI)
Public Instance Methods
run(stringio)
click to toggle source
# File lib/solr_wrapper/popen_runner.rb, line 4 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