Method: Beaker::SshConnection#process_stdin_for

Defined in:
lib/beaker/ssh_connection.rb

#process_stdin_for(channel, stdin) ⇒ Object



255
256
257
258
259
260
261
262
263
# File 'lib/beaker/ssh_connection.rb', line 255

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