Sha256: 88f29753e02a72a0cf489bd4fe6f03614e449b34f2eeda2933c04032310b35a0

Contents?: true

Size: 529 Bytes

Versions: 1

Compression:

Stored size: 529 Bytes

Contents

In Gemfile:

    gem 'figgy'

Configure (say, in a Rails initializer):

    APP_CONFIG = Figgy.build do |config|
      config.root = Rails.root.join('etc')

      # config.foo is read from etc/foo.yml
      config.define_overlay :default, nil

      # config.foo is then updated with values from etc/production/foo.yml
      config.define_overlay(:environment) { Rails.env }
    end

Access it as a dottable, indifferent-access hash:

    APP_CONFIG["foo"]["some_key"]
    APP_CONFIG[:foo].some_key
    APP_CONFIG.foo[:some_key]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
figgy-0.0.1 README