Sha256: 6621fe322ec269d0f28e20b32b129a28970df184fbdb1e5ef333a584406179d5

Contents?: true

Size: 1.16 KB

Versions: 68

Compression:

Stored size: 1.16 KB

Contents

# This file is loaded by the autoloader, and it does not find the data function support unless required relative
#
require_relative 'data_function_support'
module Puppet::DataProviders; end

# 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.
#
# TODO: API 5.0, remove this class
# @api private
# @deprecated
class Puppet::DataProviders::FunctionEnvDataProvider < Puppet::Plugins::DataProviders::EnvironmentDataProvider
  include Puppet::DataProviders::DataFunctionSupport

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

    # This loader allows the data function to be private or public in the environment
    scope.compiler.loaders.private_environment_loader
  end
end

Version data entries

68 entries across 68 versions & 2 rubygems

Version Path
puppet-retrospec-1.8.0 vendor/pup410/lib/puppet/data_providers/function_env_data_provider.rb
puppet-retrospec-1.7.0 vendor/pup410/lib/puppet/data_providers/function_env_data_provider.rb
puppet-4.10.12 lib/puppet/data_providers/function_env_data_provider.rb
puppet-4.10.12-x86-mingw32 lib/puppet/data_providers/function_env_data_provider.rb
puppet-4.10.12-x64-mingw32 lib/puppet/data_providers/function_env_data_provider.rb
puppet-4.10.12-universal-darwin lib/puppet/data_providers/function_env_data_provider.rb
puppet-4.10.11 lib/puppet/data_providers/function_env_data_provider.rb
puppet-4.10.11-x86-mingw32 lib/puppet/data_providers/function_env_data_provider.rb
puppet-4.10.11-x64-mingw32 lib/puppet/data_providers/function_env_data_provider.rb
puppet-4.10.11-universal-darwin lib/puppet/data_providers/function_env_data_provider.rb
puppet-4.10.10 lib/puppet/data_providers/function_env_data_provider.rb
puppet-4.10.10-x86-mingw32 lib/puppet/data_providers/function_env_data_provider.rb
puppet-4.10.10-x64-mingw32 lib/puppet/data_providers/function_env_data_provider.rb
puppet-4.10.10-universal-darwin lib/puppet/data_providers/function_env_data_provider.rb
puppet-retrospec-1.6.1 vendor/pup410/lib/puppet/data_providers/function_env_data_provider.rb
puppet-retrospec-1.6.0 vendor/pup410/lib/puppet/data_providers/function_env_data_provider.rb
puppet-4.10.9 lib/puppet/data_providers/function_env_data_provider.rb
puppet-4.10.9-x86-mingw32 lib/puppet/data_providers/function_env_data_provider.rb
puppet-4.10.9-x64-mingw32 lib/puppet/data_providers/function_env_data_provider.rb
puppet-4.10.9-universal-darwin lib/puppet/data_providers/function_env_data_provider.rb