Method: Rundoc::CodeCommand::Pipe#call
- Defined in:
- lib/rundoc/code_command/pipe.rb
#call(env = {}) ⇒ Object
before: “”, after: “”, commands:
[[cmd, output], [cmd, output]]
15 16 17 18 19 20 21 |
# File 'lib/rundoc/code_command/pipe.rb', line 15 def call(env = {}) last_command = env[:commands].last puts "Piping: results of '#{last_command[:command]}' to '#{@delegate}'" @delegate.push(last_command[:output]) @delegate.call(env) end |