class Hiera::Backend::Env_backend

Public Class Methods

new() click to toggle source
# File lib/hiera/backend/env_backend.rb, line 6
def initialize
  Hiera.debug('Hiera environment backend starting')
end

Public Instance Methods

lookup(key, scope, order_override, resolution_type, context) click to toggle source
# File lib/hiera/backend/env_backend.rb, line 10
def lookup(key, scope, order_override, resolution_type, context)
  Hiera.debug(
      "Looking up #{key} in environment backend with #{resolution_type}")

  Backend.parse_answer(
      ENV[key.to_s.upcase] || throw(:no_such_key),
      scope)
end