Method: Cisco::ConfigParser::Configuration#include_command?

Defined in:
lib/cisco_node_utils/configparser_lib.rb

#include_command?(command) ⇒ Boolean

Check command [Array] for test command

Parameters:

  • command (String)

    test command

Returns:

  • (Boolean)

    true if command found, else false



148
149
150
151
# File 'lib/cisco_node_utils/configparser_lib.rb', line 148

def include_command?(command)
  commands = mode_configuration
  commands.include?(command)
end