Gem simplify configs in CG Projects.
gem 'cg_config', :git => "[email protected]:cgservices/cg_config.git"
The gem looks in config/yml for all yml files and loads them into CgConfig::[FILENAME] as a hash with symbols as keys
If the yml file contains the Rails environment as the first key then the config is loaded by environment, otherwise the config is loaded as a whole.
development:
url: www.myurl.com
username: myname
password: mysecretpassword
production:
url: www.myproductionurl.com
username: myothername
password: mysupersecretpassword
CgConfig::MY_CONFIG[:url]
Cg_config looks in config/yml for the yml files Next step is to make the folder configurable by setting CgConfig::CG_CONFIG_FOLDER