Object
# File lib/cocaine/command_line/runners/posix_runner.rb, line 20 def call(command, env = {}, options = {}) input, output = IO.pipe options[:out] = output with_modified_environment(env) do pid = spawn(env, command, options) output.close result = "" while partial_result = input.read(8192) result << partial_result end waitpid(pid) input.close result end end
Generated with the Darkfish Rdoc Generator 2.