Class Net::SSH::Service::Process::POpen3Manager::SSHStdoutPipe
In: lib/net/ssh/service/process/popen3.rb
Parent: SSHOutputPipe

A specialization of SSHOutputPipe that represents specifically the stdout stream of a process. It should only be used by popen3.

Methods

do_data   new  

Public Class methods

Create a new stdout stream on the given channel. Only one such pipe should ever be associated with a channel.

[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.

[Source]

     # File lib/net/ssh/service/process/popen3.rb, line 148
148:             def do_data( channel, data )
149:               @data << data
150:             end

[Validate]