A specialization of SSHOutputPipe that represents specifically the stdout stream of a process. It should only be used by popen3.
Methods
Public Class methods
Create a new stdout 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 141
141: def initialize( channel )
142: super( channel )
143: channel.on_data(&method(:do_data))
144: 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 148
148: def do_data( channel, data )
149: @data << data
150: end