Class: Puppet::DataProviders::FunctionModuleDataProvider Deprecated Private

Inherits:
Plugins::DataProviders::ModuleDataProvider show all
Includes:
DataFunctionSupport
Defined in:
lib/puppet/data_providers/function_module_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.

Deprecated.

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.

TODO: API 5.0, remove this class

Constant Summary

Constants inherited from Plugins::DataProviders::ModuleDataProvider

Plugins::DataProviders::ModuleDataProvider::LOOKUP_OPTIONS

Constants included from Pops::Lookup::SubLookup

Pops::Lookup::SubLookup::SPECIAL

Instance Attribute Summary

Attributes inherited from Plugins::DataProviders::ModuleDataProvider

#module_name

Instance Method Summary collapse

Methods included from DataFunctionSupport

#initialize_data

Methods inherited from Plugins::DataProviders::ModuleDataProvider

#data_key, #initialize, #validate_data

Methods included from Plugins::DataProviders::DataProvider

#data_key, #key_lookup, #lookup, #name, #post_process, #unchecked_key_lookup, #unchecked_lookup, #validate_data

Methods included from Pops::Lookup::Interpolation

#interpolate

Methods included from Pops::Lookup::SubLookup

#split_key, #sub_lookup

Methods included from Pops::Lookup::DataProvider

#key_lookup, #key_lookup_in_default, key_type, #lookup, #module_name, #name, register_types, #unchecked_key_lookup, #validate_data_hash, #validate_data_value, #value_is_validated?, value_type

Constructor Details

This class inherits a constructor from Puppet::Plugins::DataProviders::ModuleDataProvider

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.



17
18
19
20
21
22
23
# File 'lib/puppet/data_providers/function_module_data_provider.rb', line 17

def loader(key, scope)
  unless Puppet[:strict] == :off
    Puppet.warn_once(:deprecation, 'Puppet::DataProviders::FunctionModuleDataProvider',
    'Puppet::DataProviders::FunctionModuleDataProvider is deprecated and will be removed in the next major version of Puppet')
  end
  scope.compiler.loaders.private_loader_for_module(key)
end