class ContainerConfig::Provider::Env

Environment variable config value provider

Public Instance Methods

load(key, *dig_keys, **options) click to toggle source

Loads an environment value configuration setting

@param [String] key Configuration key to load @param [Array] dig_keys Variable keys to use to load from providers that accept a dig structure @param [Hash] options Options Hash

@return [Object] configuration setting value

Calls superclass method ContainerConfig::Provider::Base#load
# File lib/container_config/provider/env.rb, line 23
def load(key, *dig_keys, **options)
  super
  ENV[key]
end
name() click to toggle source

@see ContainerConfig::Provider::Base#name

# File lib/container_config/provider/env.rb, line 10
def name
  "Environment Variable"
end