Sha256: 68d09088d215ceed270f2b5089156cee2891aa5d2570e542877af39d317afbce

Contents?: true

Size: 953 Bytes

Versions: 4

Compression:

Stored size: 953 Bytes

Contents

# ConfigHound

ConfigHound makes it easy to load configuration data that is
spread between multiple files.

## Usage

    # load YAML
    config = ConfigHound.load("config.yml")

    # load JSON
    config = ConfigHound.load("config.json")

    # load TOML
    config = ConfigHound.load("config.toml")

## Inclusion

ConfigHound let's you include defaults from other files.
Just list the file paths (or URLs) under the key "_include",

For example, in `config.yml`:

    _include:
      - defaults.yml
    pool:
      size: 10
    log:
      file: "app.log"

then in `defaults.yml`

    log:
      level: INFO
    pool:
      size: 1

Values in the original config file override those from included files.
Multiple levels of inclusion are possible.

If the placeholder "`_include`" doesn't suit, you can specify
another, e.g.

    config = ConfigHound.load("config.yml", :include_key => "defaults")

## Contributing

It's on GitHub; you know the drill.

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
config_hound-1.2.1 README.md
config_hound-1.2.0 README.md
config_hound-1.1.0 README.md
config_hound-1.0.0 README.md