Sha256: f0e78c5c8924131b9db73948a151a2134389d0de7b488c851b8fe2e76149bd5a

Contents?: true

Size: 474 Bytes

Versions: 1

Compression:

Stored size: 474 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}")

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
confidante-0.3.0 lib/hiera/backend/overrides_backend.rb