Method: Rbeapi::Client.config_for

Defined in:
lib/rbeapi/client.rb

.config_for(name) ⇒ Hash?

Returns the configuration options for the named connection from the the loaded configuuration. The configuration name is specified as the string right of the colon in the section name.

Parameters:

  • :name (String)

    The connection name to return from the loaded configuration

Returns:

  • (Hash, nil)

    This method will return the configuration hash for the named configuration if found. If the name is not found, then nil is returned



90
91
92
# File 'lib/rbeapi/client.rb', line 90

def config_for(name)
  return config.get_connection(name)
end