Methods
Constants
EXTERNAL_SERVICES | = | Hash.new |
A registry of external (i.e., third-party) services that should be made available to any SSH session. |
Classes and Modules
Module Net::SSH::ConnectionModule Net::SSH::Proxy
Module Net::SSH::Service
Module Net::SSH::Transport
Module Net::SSH::UserAuth
Module Net::SSH::Util
Module Net::SSH::Version
Class Net::SSH::AuthenticationFailed
Class Net::SSH::Exception
Class Net::SSH::Session
Public Instance methods
Used by third-parties to register a service that should be made available to any SSH session when the session is constructed. The block should take a two parameters—the dependency injection container that should contain the services, and the service-point for the service being registered.
The name parameter should be a symbol.
[ show source ]
# File lib/net/ssh.rb, line 61 61: def register_service( name, &block ) 62: EXTERNAL_SERVICES[ name ] = block 63: end
A convenience method for starting a new SSH session. See Net::SSH::Session.
[ show source ]
# File lib/net/ssh.rb, line 46 46: def start( *args, &block ) 47: Net::SSH::Session.new( *args, &block ) 48: end