Sha256: 2f11c0f2cedf6c341012324cb1c966f13f90e313c262baffd8fb20af15c383eb
Contents?: true
Size: 684 Bytes
Versions: 24
Compression:
Stored size: 684 Bytes
Contents
require 'hiera' class Hiera module Backend class Overrides_backend def initialize Hiera.debug('Hiera overrides backend starting') end def lookup(key, scope, order_override, resolution_type, context) Hiera.debug( "Looking up #{key} in overrides backend with #{resolution_type}") overrides = scope && scope['overrides'] Hiera.debug("Found overrides: #{overrides}") throw(:no_such_key) unless overrides override = overrides[key.to_s] Hiera.debug("Found override: #{override} for key: #{key}") Backend.parse_answer(override || throw(:no_such_key), scope) end end end end
Version data entries
24 entries across 24 versions & 1 rubygems