ruby cfg

Configuration management gem for steenzout packages.

1
0
Ruby

steenzout-cfg

Code Climate
Gem Version
steenzout-cfg API Documentation

steenzout-cfg is a gem to manage configurations.

convention

On your YAML configuration files, the gem name should be the first element.

gem1:
  (...)
  property: value

gem2:
  (...)
  property: value

usage

require 'rubygems
require 'steenzout-cfg'

# load the configuration
Steenzout::ConfigurationManager.load 'configuration.yaml'

# access a specific gem configuration
config = Steenzout::ConfigurationManager.configuration_for_gem 'steenzout-cfg'