Sha256: 94b44b16bb05bccb4d6c5793d4d75dcaacf3d795b7c1694645ba014c36c12fd1

Contents?: true

Size: 475 Bytes

Versions: 1

Compression:

Stored size: 475 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_sym] || throw(:no_such_key),
            scope)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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