Sha256: 5426e8a06cff321b9fc0aecb66232bd672609ee9ec63abace36480ac11eca9cc
Contents?: true
Size: 594 Bytes
Versions: 348
Compression:
Stored size: 594 Bytes
Contents
class Hiera::Backend::Hieraspec_backend def initialize(cache = nil) Hiera.debug('Custom_backend starting') end def lookup(key, scope, order_override, resolution_type, context) case key when 'datasources' Hiera::Backend.datasources(scope, order_override) { |source| source } when 'resolution_type' if resolution_type == :hash { key => resolution_type.to_s } elsif resolution_type == :array [ key, resolution_type.to_s ] else "resolution_type=#{resolution_type}" end else throw :no_such_key end end end
Version data entries
348 entries across 348 versions & 1 rubygems