class Puppet::Pops::Lookup::EnvironmentDataProvider
@api private
Public Instance Methods
place()
click to toggle source
# File lib/puppet/pops/lookup/environment_data_provider.rb 8 def place 9 'Environment' 10 end
Protected Instance Methods
assert_config_version(config)
click to toggle source
# File lib/puppet/pops/lookup/environment_data_provider.rb 14 def assert_config_version(config) 15 if config.version > 3 16 config 17 else 18 if Puppet[:strict] == :error 19 config.fail(Issues::HIERA_VERSION_3_NOT_GLOBAL, :where => 'environment') 20 else 21 Puppet.warn_once(:hiera_v3_at_env_root, config.config_path, _('hiera.yaml version 3 found at the environment root was ignored'), config.config_path) 22 end 23 nil 24 end 25 end
provider_root(lookup_invocation)
click to toggle source
Return the root of the environment
@param lookup_invocation [Invocation] The current lookup invocation @return [Pathname] Path to root of the environment
# File lib/puppet/pops/lookup/environment_data_provider.rb 31 def provider_root(lookup_invocation) 32 Pathname.new(lookup_invocation.scope.environment.configuration.path_to_env) 33 end