An open API service indexing awesome lists of open source software.

https://github.com/copiousfreetime/envolve

Envolve provides a consistent and validating way to access your application configuration that is set via environment variables. This is doubly beneficial if you are configuring your entire application with environment variables. See. http://12factor.net/config
https://github.com/copiousfreetime/envolve

12-factor environment-variables ruby

Last synced: 12 months ago
JSON representation

Envolve provides a consistent and validating way to access your application configuration that is set via environment variables. This is doubly beneficial if you are configuring your entire application with environment variables. See. http://12factor.net/config

Awesome Lists containing this project

README

          

## envolve

* [Homepage](https://github.com/copiousfreetime/envolve/)
* [Github Project](https://github.com/copiousfreetime/envolve)

## DESCRIPTION

Envolve provides a consistent and validating way to access your application
configuration that is set via environment variables.

This is double beneficial if you are configuring your entire application with
environment variables. See. http://12factor.net/config

## USAGE

module MyApp
class MyConfig < ::Envolve::Config
prefix 'my_app'
end

def self.config
@config ||= MyConfig.new
end
end

# deep in some code somewhere

hostname = MyApp.config.hostname # which was originall from ENV['MY_APP_HOSTNAME']

## FEATURES

envolve

## Examples

## ISC LICENSE

http://opensource.org/licenses/isc-license.txt

Copyright (c) 2013 Jeremy Hinegardner

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice
and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.