Method: Scmd::Command::ChildProcess#initialize

Defined in:
lib/scmd/command.rb

#initialize(cmd_str, env, options) ⇒ ChildProcess

Returns a new instance of ChildProcess.



180
181
182
183
184
185
186
187
# File 'lib/scmd/command.rb', line 180

def initialize(cmd_str, env, options)
  @pid, @stdin, @stdout, @stderr = *::POSIX::Spawn.popen4(
    env,
    cmd_str,
    options,
  )
  @wait_pid, @wait_status = nil, nil
end