Method: Cisco::TacacsGlobal#initialize

Defined in:
lib/cisco_node_utils/tacacs_global.rb

#initialize(name) ⇒ TacacsGlobal

Returns a new instance of TacacsGlobal.



31
32
33
34
35
36
37
38
# File 'lib/cisco_node_utils/tacacs_global.rb', line 31

def initialize(name)
  fail TypeError unless name.is_a?(String)
  fail ArgumentError,
       "This provider only accepts an id of 'default'" \
       unless name.eql?('default')
  Feature.tacacs_enable unless Feature.tacacs_enabled?
  @name = name
end