Method: Rbeapi::Client.config

Defined in:
lib/rbeapi/client.rb

.configConfig

Returns the currently loaded config object. This function will create a new instance of the config object if one doesn’t already exist

Returns:

  • (Config)

    Returns an instance of Config used for working with the eapi.conf file



61
62
63
64
65
# File 'lib/rbeapi/client.rb', line 61

def config
  return @config if @config
  @config = Config.new()
  return @config
end