lib/evrone/common/spawn/ssh.rb in evrone-common-spawn-0.0.5 vs lib/evrone/common/spawn/ssh.rb in evrone-common-spawn-0.0.6

- old
+ new

@@ -84,12 +84,12 @@ end def spawn_channel(command, read_timeout, &block) @connection.open_channel do |channel| - channel.request_pty do |_, pty_status| - raise StandardError, "could not obtain pty" unless pty_status + #channel.request_pty do |_, pty_status| + # raise StandardError, "could not obtain pty" unless pty_status read_timeout.reset channel.exec command do |_, success| @@ -105,10 +105,10 @@ channel.on_extended_data do |_, _, data| yield normalize_nl(data) if block_given? read_timeout.reset end end - end + #end end end end