Sha256: ea600f47a1730e5d67c4539527449a8937d6c00499b231da790893c9bde9de5e
Contents?: true
Size: 550 Bytes
Versions: 3
Compression:
Stored size: 550 Bytes
Contents
module Methadone module ExecutionStrategy # <b>Methadone Internal - treat as private</b> # # ExecutionStrategy for non-modern Rubies that must rely on # Open4 to get access to the standard output AND error. class Open_4 < MRI def run_command(command) pid, stdin_io, stdout_io, stderr_io = Open4::popen4(command) stdin_io.close stdout = stdout_io.read stderr = stderr_io.read _ , status = Process::waitpid2(pid) [stdout.chomp,stderr.chomp,status] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
methadone-1.1.0 | lib/methadone/execution_strategy/open_4.rb |
methadone-1.0.0 | lib/methadone/execution_strategy/open_4.rb |
methadone-1.0.0.rc6 | lib/methadone/execution_strategy/open_4.rb |