PISEC
Write your secure settings in environment variable that are formatted in a Platform Independent format (JSON) that can be used to configure your software
Installation
Add this line to your application's Gemfile:
gem 'pisec'
And then execute:
$ bundle
Or install it yourself as:
$ gem install pisec
Usage
configure it:
vi config/secure_settings.sh:
# The format for this file is essentially:
# export
Rails: initialize it: vi config/initializers/pisec.rb: Settings = Pisec::Support.load_file( "#RAILS_ROOT/config/secure_settings.sh", # data-file "PISEC" # namespace )
use it: Settings.get("dev_db_user")
Shell: # config-file namespace lookup-key ./bin/pisec -c README.md -n PISEC -l dev_db_user
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request