Module Net::SSH::Service
In: lib/net/ssh/service/services.rb
lib/net/ssh/service/forward/driver.rb
lib/net/ssh/service/forward/local-network-handler.rb
lib/net/ssh/service/forward/remote-network-handler.rb
lib/net/ssh/service/forward/services.rb
lib/net/ssh/service/process/driver.rb
lib/net/ssh/service/process/open.rb
lib/net/ssh/service/process/popen3.rb
lib/net/ssh/service/process/services.rb
lib/net/ssh/service/shell/driver.rb
lib/net/ssh/service/shell/services.rb
lib/net/ssh/service/shell/shell.rb
lib/net/ssh/service/shell/sync.rb

Methods

Classes and Modules

Module Net::SSH::Service::Forward
Module Net::SSH::Service::Process
Module Net::SSH::Service::Shell

Public Instance methods

Register all standard SSH services.

[Source]

    # File lib/net/ssh/service/services.rb, line 24
24:       def register_services( container )
25: 
26:         # Define the hash that will be used to record the registered services.
27:         # If the hash already exists, don't redefine it.
28:         unless container.knows_key?( :services )
29:           container.define.services { Hash.new }
30:         end
31: 
32:         # Register the services in their own namespace.
33:         container.namespace_define :service do |ns|
34:           ns.require "net/ssh/service/forward/services", "#{self}::Forward"
35:           ns.require "net/ssh/service/process/services", "#{self}::Process"
36:           ns.require "net/ssh/service/shell/services", "#{self}::Shell"
37:         end
38: 
39:         # Add the services to the services hash.
40:         container.services[ :forward ] = container.service.forward.driver
41:         container.services[ :process ] = container.service.process.driver
42:         container.services[ :shell ] = container.service.shell.driver
43: 
44:         # Register the external services and add them to the collection of
45:         # known services.
46:         EXTERNAL_SERVICES.each do |name, block|
47:           container.service.register( name,
48:             :model => :singleton_deferred,
49:             &block )
50:           container.services[ name ] = container.service[ name ]
51:         end
52: 
53:       end

[Validate]