Method: Beaker::SshConnection#register_stderr_for
- Defined in:
- lib/beaker/ssh_connection.rb
#register_stderr_for(channel, output, callback = nil) ⇒ Object
142 143 144 145 146 147 148 149 150 |
# File 'lib/beaker/ssh_connection.rb', line 142 def register_stderr_for channel, output, callback = nil channel.on_extended_data do |ch, type, data| if type == 1 callback[data] if callback output.stderr << data output.output << data end end end |