Method: Beaker::SshConnection#register_stderr_for
- Defined in:
- lib/beaker/ssh_connection.rb
#register_stderr_for(channel, output, callback = nil) ⇒ Object
264 265 266 267 268 269 270 271 272 |
# File 'lib/beaker/ssh_connection.rb', line 264 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 |