Method: Beaker::SshConnection#request_terminal_for
- Defined in:
- lib/beaker/ssh_connection.rb
#request_terminal_for(channel, command) ⇒ Object
240 241 242 243 244 245 246 247 248 249 |
# File 'lib/beaker/ssh_connection.rb', line 240 def request_terminal_for channel, command channel.request_pty do |ch, success| if success @logger.debug "Allocated a PTY on #{@hostname} for #{command.inspect}" else raise Net::SSH::Exception.new("FAILED: could not allocate a pty when requested on " + "#{@hostname} for #{command.inspect}") end end end |