# File lib/puppet/indirector/hiera.rb, line 18 def find(request) hiera.lookup(request.key, nil, Hiera::Scope.new(request.options[:variables]), nil, nil) rescue *DataBindingExceptions => detail raise Puppet::DataBinding::LookupError.new(detail.message, detail) end
# File lib/puppet/indirector/hiera.rb, line 5 def initialize(*args) if ! Puppet.features.hiera? raise "Hiera terminus not supported without hiera library" end super end