EXTERNAL_SERVICES | = | Hash.new | A registry of external (i.e., third-party) services that should be made available to any SSH session. |
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.
# 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.
# File lib/net/ssh.rb, line 46 46: def start( *args, &block ) 47: Net::SSH::Session.new( *args, &block ) 48: end