Class

Session

Extends:

Encapsulates a single session (connection) to a server via SSH.

Public Attributes
connection The underlying connection
host The name of the host that this session is connected to.
options The hash of options that were used to establish this session.
registry The dependency-injection registry used by this session.
Public Methods
close Closes the session, if it is open. If it is not open, this does nothing.
loop Enters the main communication loop. This processes events occuring over the channel. If a block is given, the loop will continue for as long as the block returns true. Otherwise, the loop continues until there are no more open channels. (See Net::SSH::Connection::Driver#loop).
method_missing Provides convenient access to services that have been registered with the session, such as "process" and "forward".
new Create a new SSH session. This method polymorphically accepts a variable number of parameters, as follows:
open? Returns true if the session is currently open.
open_channel Opens a new communication channel over the current connection. This returns immediately. The block will be invoked when then the channel has been opened. (See Net::SSH::Connection::Driver#open_channel).
Private Methods
host_key_verifier_from
process_arguments Processes the argument list, determining the meaning of each argument and allowing polymorphic argument lists. (See #initialize).
sanity_check Make sure we’re in an acceptible state.
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.