Method: Rbeapi::Client.load_config

Defined in:
lib/rbeapi/client.rb

.load_config(conf) ⇒ Object

load_config overrides the default conf file loaded in the config instances using the supplied conf argument as the conf file. This method will clear out an previously loaded configuration and replace all entries with the contects of the supplied file.

Parameters:

  • :conf (String)

    The full path to the conf file to load into the config instance.



75
76
77
# File 'lib/rbeapi/client.rb', line 75

def load_config(conf)
  config.read(conf)
end