Makes it easy to spawn Ruby sub-processes with guaranteed exit status
handling, passing of lines to STDIN, and capturing of STDOUT and STDERR
streams.
···
----
Why Yet Another Ruby Process Wrapper Library?
There's many other libraries to make it easier to work with processes in
Ruby (see the Resources section of README). However, process_helper was
created because none of them made it easy to run processes while meeting
all of these requirements (redundant details are repeated in Goals section
of README):
* Combine STDOUT/STDERR output streams interleaved chronologically as
emitted
* Stream STDOUT/STDERR real-time while process is still running, in
addition to returning full output as a string and/or in an exception
* Guarantee an exception is always raised on an unexpected exit status (and
allow specification of multiple nonzero values as expected exit statuses)
* Can be used very concisely. I.e. All behavior can be invoked via a single
mixed-in module with single public method call using terse options with
sensible defaults, no need to use IO streams directly or have any blocks or
local variables declared.
* https://github.com/thewoolleyman/process_helper
* https://rubygems.org/gems/process_helper
Thanks,
-- Chad