Class: ContainerConfig::Provider::Env

Inherits:
Base
  • Object
show all
Defined in:
lib/container_config/provider/env.rb

Overview

Environment variable config value provider

Instance Method Summary collapse

Instance Method Details

#load(key, *dig_keys, **options) ⇒ Object

Loads an environment value configuration setting

Parameters:

  • key (String)

    Configuration key to load

  • dig_keys (Array)

    Variable keys to use to load from providers that accept a dig structure

  • options (Hash)

    Options Hash

Returns:

  • (Object)

    configuration setting value



23
24
25
26
# File 'lib/container_config/provider/env.rb', line 23

def load(key, *dig_keys, **options)
  super
  ENV[key]
end

#nameObject

See Also:



10
11
12
# File 'lib/container_config/provider/env.rb', line 10

def name
  "Environment Variable"
end