def register_services( container )
container.namespace_define :shell do |ns|
ns.shell do |c,p|
require 'net/ssh/service/shell/shell'
connection = c[:connection][:driver]
log = c[:log_for, p]
lambda { |pty| Shell.new( connection, log, pty ) }
end
ns.sync do |c,p|
require 'net/ssh/service/shell/sync'
connection = c[:connection][:driver]
log = c[:log_for, p]
shell = c[:shell]
lambda { |pty| SyncShell.new( shell, log, pty ) }
end
ns.driver do |c,p|
require 'net/ssh/service/shell/driver'
Driver.new( c[:log_for, p], c[:shell], c[:sync] )
end
end
end