Class: Puppet::DataProviders::FunctionModuleDataProvider

Inherits:
Plugins::DataProviders::ModuleDataProvider show all
Includes:
DataFunctionSupport
Defined in:
lib/puppet/data_providers/function_module_data_provider.rb

Overview

The FunctionModuleDataProvider 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

Methods included from DataFunctionSupport

#initialize_data

Methods included from Plugins::DataProviders::DataProvider

#lookup, #name, #post_process, #unchecked_lookup

Instance Method Details

#loader(key, scope) ⇒ Object



14
15
16
# File 'lib/puppet/data_providers/function_module_data_provider.rb', line 14

def loader(key, scope)
  scope.compiler.loaders.private_loader_for_module(key)
end