Class: Puppet::DataProviders::FunctionEnvDataProvider Private
- Inherits:
-
Plugins::DataProviders::EnvironmentDataProvider
- Object
- Plugins::DataProviders::EnvironmentDataProvider
- Puppet::DataProviders::FunctionEnvDataProvider
- Includes:
- DataFunctionSupport
- Defined in:
- lib/puppet/data_providers/function_env_data_provider.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
The FunctionEnvDataProvider provides data from a function called ‘environment::data()’ that resides in a directory environment (seen as a module with the name environment). The function is called on demand, and is associated with the compiler via an Adapter. This ensures that the data is only produced once per compilation.
Instance Method Summary collapse
- #loader(key, scope) ⇒ Object private
Methods included from DataFunctionSupport
Methods inherited from Plugins::DataProviders::EnvironmentDataProvider
Methods included from Plugins::DataProviders::DataProvider
#data_key, #lookup, #name, #post_process, #unchecked_lookup, #validate_data
Methods included from Pops::Lookup::Interpolation
Methods included from Pops::Lookup::SubLookup
Instance Method Details
#loader(key, scope) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 18 |
# File 'lib/puppet/data_providers/function_env_data_provider.rb', line 15 def loader(key, scope) # This loader allows the data function to be private or public in the environment scope.compiler.loaders.private_environment_loader end |