A class that acts just enough like a Puppet::Parser::Scope to fool Hiera’s puppet backend. This class doesn’t actually do anything but it does allow people to use the puppet backend with the hiera data bindings withough causing problems.
# File lib/puppet/data_binding.rb, line 20 def initialize(variable_bindings) @variable_bindings = variable_bindings end
# File lib/puppet/data_binding.rb, line 24 def [](name) @variable_bindings[name] end
# File lib/puppet/data_binding.rb, line 32 def catalog FAKE_CATALOG end
# File lib/puppet/data_binding.rb, line 36 def function_include(name) # noop end
# File lib/puppet/data_binding.rb, line 28 def resource FAKE_RESOURCE end