lib/net/ssh/service/services.rb in net-ssh-0.6.0 vs lib/net/ssh/service/services.rb in net-ssh-0.9.0
- old
+ new
@@ -1,8 +1,8 @@
#--
# =============================================================================
-# Copyright (c) 2004, Jamis Buck (jgb3@email.byu.edu)
+# Copyright (c) 2004,2005 Jamis Buck (jamis_buck@byu.edu)
# All rights reserved.
#
# This source file is distributed as part of the Net::SSH Secure Shell Client
# library for Ruby. This file (and the library as a whole) may be used only as
# allowed by either the BSD license, or the Ruby license (or, by association
@@ -31,14 +31,16 @@
# Register the services in their own namespace.
container.namespace_define :service do |ns|
ns.require "net/ssh/service/forward/services", "#{self}::Forward"
ns.require "net/ssh/service/process/services", "#{self}::Process"
+ ns.require "net/ssh/service/shell/services", "#{self}::Shell"
end
# Add the services to the services hash.
container.services[ :forward ] = container.service.forward.driver
container.services[ :process ] = container.service.process.driver
+ container.services[ :shell ] = container.service.shell.driver
# Register the external services and add them to the collection of
# known services.
EXTERNAL_SERVICES.each do |name, block|
container.service.register( name,