Method: Beaker::SshConnection#register_stdout_for
- Defined in:
- lib/beaker/ssh_connection.rb
#register_stdout_for(channel, output, callback = nil) ⇒ Object
236 237 238 239 240 241 242 |
# File 'lib/beaker/ssh_connection.rb', line 236 def register_stdout_for channel, output, callback = nil channel.on_data do |ch, data| callback[data] if callback output.stdout << data output.output << data end end |