Method: Capistrano::OutputCatcher::Base#tee_output
- Defined in:
- lib/capistrano/ext/output_catcher.rb
#tee_output(out = StringIO.new, err = nil) ⇒ Object
53 54 55 56 57 |
# File 'lib/capistrano/ext/output_catcher.rb', line 53 def tee_output(out = StringIO.new, err = nil) create_capture_channels(out, err) reroute_original_channels override_output_channels(TeeIO.new($std.out, out), TeeIO.new($std.err, err)) end |