A specialization of SSHOutputPipe that represents specifically the stderr stream of a process. It should only be used by popen3.
Methods
Public Class methods
Create a new stderr stream on the given channel. Only one such pipe should ever be associated with a channel.
[ show source ]
# File lib/net/ssh/service/process/popen3.rb, line 160 160: def initialize( channel ) 161: super( channel ) 162: channel.on_extended_data(&method(:do_data)) 163: end
Public Instance methods
Invoked when data is recieved from the channel. It simply accumulates all data until a read is invoked.
[ show source ]
# File lib/net/ssh/service/process/popen3.rb, line 167 167: def do_data( channel, type, data ) 168: @data << data if type == 1 169: end