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
- Host: GitHub
- URL: https://github.com/copiousfreetime/envolve
- Owner: copiousfreetime
- License: isc
- Created: 2014-09-29T21:05:39.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-01-31T21:54:08.000Z (over 10 years ago)
- Last Synced: 2025-06-05T09:09:39.727Z (about 1 year ago)
- Topics: 12-factor, environment-variables, ruby
- Language: Ruby
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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.