public Method

SSH.register_service( name, &block )

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
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.