Sha256: 24d58eea9963a2520d87b40880f793dd8f519193329b9fdb1c8ab8025460e17e
Contents?: true
Size: 615 Bytes
Versions: 31
Compression:
Stored size: 615 Bytes
Contents
# frozen_string_literal: true require 'hiera' class Hiera module Backend # rubocop:disable Naming/ClassAndModuleCamelCase class Env_backend def initialize Hiera.debug('Hiera environment backend starting') end 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 end # rubocop:enable Naming/ClassAndModuleCamelCase end end
Version data entries
31 entries across 31 versions & 1 rubygems