Method: Netconf::SSH#initialize
- Defined in:
- lib/net/netconf/ssh.rb
#initialize(args_h, &block) ⇒ SSH
Returns a new instance of SSH.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/net/netconf/ssh.rb', line 9 def initialize( args_h, &block ) @args = args_h.clone @args[:os_type] = args_h[:os_type] || Netconf::DEFAULT_OS_TYPE # extend this instance with the capabilities of the specific os_type begin extend Netconf::const_get( @args[:os_type] )::TransSSH rescue NameError # no extensions available ... end @trans = Hash.new super( &block ) end |