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

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

Methods

do_data   new  

Public Class methods

Create a new stderr 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 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.

[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

[Validate]