class EacRubyUtils::Envs::Spawn
def initialize(command)
def initialize(command) @command = command @pid = ::Process.spawn(command) end
def kill(signal)
def kill(signal) ::Process.kill(signal, pid) end
def kill_at_end(&block)
def kill_at_end(&block) block.call(self) ensure kill('KILL') end
def to_h
def to_h { command: command, pid: pid } end
def wait
def wait ::Process.wait pid end