Module: RGovData::CommonConfig

Included in:
Service, Shell
Defined in:
lib/rgovdata/config/common_config.rb

Overview

This module is used to include basic support to access the shared RGovData::Config instance

Instance Method Summary collapse

Instance Method Details

#configObject

Returns the current config instance



5
6
7
# File 'lib/rgovdata/config/common_config.rb', line 5

def config
  RGovData::Config.instance
end

#require_config_fileObject

Sets the requirement to have a config file Must be called before config is invoked



10
11
12
# File 'lib/rgovdata/config/common_config.rb', line 10

def require_config_file
  RGovData::Config.require_config_file
end