Method: Cisco::TacacsGlobal#timeout=
- Defined in:
- lib/cisco_node_utils/tacacs_global.rb
#timeout=(val) ⇒ Object
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/cisco_node_utils/tacacs_global.rb', line 58 def timeout=(val) unless val.nil? fail ArgumentError, 'timeout must be an Integer' \ unless val.is_a?(Integer) end if val.nil? config_set('tacacs_global', 'timeout', state: 'no', timeout: timeout) else config_set('tacacs_global', 'timeout', state: '', timeout: val) end end |