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

A specialized class for use by the Net::SSH "popen3" service. An instance of this class represents a means of writing data to an SSH channel. This class should never be instantiated directly; use the popen3 method instead.

Methods

new   puts   write  

Attributes

channel  [R]  The channel used by this pipe.

Public Class methods

Create a new stdin pipe on the given channel.

[Source]

    # File lib/net/ssh/service/process/popen3.rb, line 80
80:             def initialize( channel )
81:               @channel = channel
82:             end

Public Instance methods

Write the given data as channel data to the underlying channel, appending a newline character (if one isn’t already appended).

[Source]

    # File lib/net/ssh/service/process/popen3.rb, line 92
92:             def puts( data )
93:               write data.chomp + "\n"
94:             end

Write the given data as channel data to the underlying channel.

[Source]

    # File lib/net/ssh/service/process/popen3.rb, line 85
85:             def write( data )
86:               @channel.send_data data
87:               @channel.connection.process true
88:             end

[Validate]