Method: ConfigModule::ConfigHelper#load_config

Defined in:
lib/config_module/config_helper.rb

#load_configObject

[View source]

32
33
34
35
36
37
38
# File 'lib/config_module/config_helper.rb', line 32

def load_config
  raise ConfigModule::ConfigFileNotSpecified, config_file unless config_file
  raise ConfigModule::ConfigFileNotFound, config_file unless File.exist? config_file

  yaml_load
  load_namespaces_from raw_config
end