lib/oxidized/script/script.rb in oxidized-script-0.3.1 vs lib/oxidized/script/script.rb in oxidized-script-0.4.0

- old
+ new

@@ -35,10 +35,11 @@ private # @param [Hash] opts options for Oxidized::Script # @option opts [String] :host @hostname or ip address for Oxidized::Node # @option opts [String] :model node model (ios, junos etc) if defined, nodes are not loaded from source + # @option opts [String] :ostype OS Type (ios, junos, etc) # @option opts [Fixnum] :timeout oxidized timeout # @option opts [String] :username username for login # @option opts [String] :passsword password for login # @option opts [String] :enable enable password to use # @option opts [String] :community community to use for discovery @@ -47,9 +48,10 @@ # @yieldreturn [self] if called in block, returns self and disconnnects session after exiting block # @return [void] def initialize opts, &block @host = opts.delete :host model = opts.delete :model + ostype = opts.delete :ostype timeout = opts.delete :timeout username = opts.delete :username password = opts.delete :password enable = opts.delete :enable community = opts.delete :community