Skip to content

A common configuration library used within blinkbox books for our ruby applications.

License

Notifications You must be signed in to change notification settings

blinkboxbooks/common_config.rb

Repository files navigation

Blinkbox::CommonConfig

Put your reference properties in config/reference.properties and any environmental stuff which makes sense for a development environment in config/application.properties, then load them and access them with:

# $ gem install blinkbox-common_config
require "blinkbox/common_config"

properties = Blinkbox::CommonConfig.new

# Accessible with symbols
properties[:'rabbitmq.url']
# Or strings
properties["rabbitmq.url"]

It will also load the properties file referenced in the environment variable CONFIG_URL so long as the file exists, or the http(s) URI responds with a 200 status code.

About

A common configuration library used within blinkbox books for our ruby applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages