Class: Cocaine::CommandLine::PosixRunner
- Inherits:
-
Object
- Object
- Cocaine::CommandLine::PosixRunner
- Defined in:
- lib/cocaine/command_line/runners/posix_runner.rb
Instance Method Summary collapse
Instance Method Details
#call(command, env = {}) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/cocaine/command_line/runners/posix_runner.rb', line 6 def call(command, env = {}) input, output = IO.pipe pid = spawn(env, command, :out => output) waitpid(pid) output.close input.read end |