Class: Puppet::Plugins::DataProviders::EnvironmentDataProvider Deprecated Private

Inherits:
Object
  • Object
show all
Includes:
DataProvider
Defined in:
lib/puppet/plugins/data_providers/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.

TODO: API 5.0 Remove this class

Since:

  • Puppet 4.0.0

Constant Summary

Constants included from Puppet::Pops::Lookup::SubLookup

Puppet::Pops::Lookup::SubLookup::SPECIAL

Instance Method Summary collapse

Methods included from DataProvider

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

Methods included from Puppet::Pops::Lookup::Interpolation

#interpolate

Methods included from Puppet::Pops::Lookup::SubLookup

#split_key, #sub_lookup

Methods included from Puppet::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

#initializeEnvironmentDataProvider

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.

Returns a new instance of EnvironmentDataProvider.

Since:

  • Puppet 4.0.0



184
185
186
187
188
189
# File 'lib/puppet/plugins/data_providers/data_provider.rb', line 184

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

Instance Method Details

#data_key(key, lookup_invocation) ⇒ 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.

Deprecated.

Since:

  • Puppet 4.0.0



193
194
195
# File 'lib/puppet/plugins/data_providers/data_provider.rb', line 193

def data_key(key, lookup_invocation)
  'environment'
end