Sha256: 491408b8d7a7a3a5684e75c9014cdc489c737bdf73004ee5f0655d01a061fb92
Contents?: true
Size: 653 Bytes
Versions: 26
Compression:
Stored size: 653 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 = case command when String then Open4::popen4(command) else Open4::popen4(*command) end 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
26 entries across 26 versions & 2 rubygems