Sha256: c696b03794597941c9a084b216f28db5ed9f7806b1c612bff09925a3555e9c61

Contents?: true

Size: 946 Bytes

Versions: 1

Compression:

Stored size: 946 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 'require "muchkeys"; puts MuchKeys.fetch_key("mail_server")'
# => smtp.example.com (from consul)
```

```
mail_server=muffin.ninja.local ruby -e 'require "muchkeys"; 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.1 README.md