Sha256: 13999aaf1888d564ca3e0bb393457ce5f20da72ced49391eac657397e6672e5b

Contents?: true

Size: 906 Bytes

Versions: 1

Compression:

Stored size: 906 Bytes

Contents

# MuchKeys

MuchKeys lets you store your ENV key/value settings in consul.  It's primary use is
in production where it will check to see if a ENV variable exists and then
look in consul.

It's sort of the opposite of `envconsul` (golang) or similar to `dotenv` designed
for use in production.


## Installation

Add this line to your application's Gemfile:

```ruby
gem 'muchkeys'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install muchkeys

## Usage

```
ruby -e 'puts MuchKeys.fetch_key("mail_server")'
# => smtp.example.com (from consul)
```

```
mail_server=muffin.ninja.local ruby -e 'puts MuchKeys.fetch_key("mail_server")'
# => muffin.ninja.local (from ENV)
```

Use the above in your YAMLs, your configs and your ERBs for maximum fun time.


## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
muchkeys-0.0.0 README.md