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

Version Path
solr_wrapper-4.1.0 lib/solr_wrapper/popen_runner.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/solr_wrapper-4.0.2/lib/solr_wrapper/popen_runner.rb
solr_wrapper-4.0.2 lib/solr_wrapper/popen_runner.rb
solr_wrapper-4.0.1 lib/solr_wrapper/popen_runner.rb
solr_wrapper-4.0.0 lib/solr_wrapper/popen_runner.rb
solr_wrapper-3.1.3 lib/solr_wrapper/popen_runner.rb
solr_wrapper-3.1.2 lib/solr_wrapper/popen_runner.rb
solr_wrapper-3.1.1 lib/solr_wrapper/popen_runner.rb
solr_wrapper-3.1.0 lib/solr_wrapper/popen_runner.rb
solr_wrapper-3.0.2 lib/solr_wrapper/popen_runner.rb
solr_wrapper-3.0.1 lib/solr_wrapper/popen_runner.rb
solr_wrapper-3.0.0 lib/solr_wrapper/popen_runner.rb
solr_wrapper-2.2.0 lib/solr_wrapper/popen_runner.rb
solr_wrapper-2.1.0 lib/solr_wrapper/popen_runner.rb
solr_wrapper-2.0.0 lib/solr_wrapper/popen_runner.rb
solr_wrapper-1.2.0 lib/solr_wrapper/popen_runner.rb
solr_wrapper-1.1.0 lib/solr_wrapper/popen_runner.rb