Confidential
Loads your confidential configuration into envs in rails.
Install
Put this line in your Gemfile:
gem 'confidential'
Then bundle:
$ bundle
Configuration
Put your confidential information in config/confidential.yml:
DB_USER: user
DB_PASS: pass
NOTE: Probably you want to ignore config/confidential.yml in your repo.
Usage
All the keys will be loaded into envs, you may want to use those for your database.yml:
production:
username: <%= ENV['DB_USER'] %>
password: <%= ENV['DB_PASS'] %>
Credits
This gem is maintained and funded by museways.
License
It is free software, and may be redistributed under the terms specified in the MIT-LICENSE file.