Method: Beaker::SshConnection#process_stdin_for
- Defined in:
- lib/beaker/ssh_connection.rb
#process_stdin_for(channel, stdin) ⇒ Object
275 276 277 278 279 280 281 282 283 |
# File 'lib/beaker/ssh_connection.rb', line 275 def process_stdin_for channel, stdin # queue stdin data, force it to packets, and signal eof: this # triggers action in many remote commands, notably including # 'puppet apply'. It must be sent at some point before the rest # of the action. channel.send_data stdin.to_s channel.process channel.eof! end |