Enver 
Minimal environment loader
Installation
Add this line to your application's Gemfile:
gem 'enver'
And then execute:
$ bundle
Or install it yourself as:
$ gem install enver
Usage
export CLIENT_KEY=xxx
export CLIENT_SECRET=yyy
export SERVERS=4
env = Enver.load do
string :client_key, 'CLIENT_KEY'
string :client_secret, 'CLIENT_SECRET'
integer :servers, 'SERVERS'
array :path, 'PATH', pattern: ':'
end
env.client_key # => 'xxx'
env.client_secret # => 'yyy'
env.servers # => 4
env.path # => array of your paths
Contributing
- Fork it ( https://github.com/[my-github-username]/enver/fork )
- 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 a new Pull Request