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.
Source Code
# File net/ssh.rb, line 61 def register_service( name, &block ) EXTERNAL_SERVICES[ name ] = block end
<code/>and<pre/>for code samples.