Sha256: e5da2abc45923c5902f8f628a6f3be830715454ae44393dd6f6fdce56161a85a

Contents?: true

Size: 1014 Bytes

Versions: 68

Compression:

Stored size: 1014 Bytes

Contents

# This file is loaded by the autoloader, and it does not find the hiera support unless required relative
require_relative 'hiera_support'

module Puppet::DataProviders
  # TODO: API 5.0, remove this class
  # @api private
  # @deprecated
  class HieraEnvDataProvider < Puppet::Plugins::DataProviders::EnvironmentDataProvider
    include HieraSupport

    # Return the root of the environment found in the given _scope_
    #
    # @param data_key [String] not used
    # @param scope [Puppet::Parser::Scope] the parser scope where the environment is found
    # @return [Pathname] Path to root of the environment
    def provider_root(_, scope)
      unless Puppet[:strict] == :off
        Puppet.warn_once(:deprecation, 'Puppet::DataProviders::HieraEnvDataProvider',
        'Puppet::DataProviders::HieraEnvDataProvider is deprecated and will be removed in the next major version of Puppet')
      end
      Pathname.new(scope.environment.configuration.path_to_env)
    end
    protected :provider_root
  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/hiera_env_data_provider.rb
puppet-retrospec-1.7.0 vendor/pup410/lib/puppet/data_providers/hiera_env_data_provider.rb
puppet-4.10.12 lib/puppet/data_providers/hiera_env_data_provider.rb
puppet-4.10.12-x86-mingw32 lib/puppet/data_providers/hiera_env_data_provider.rb
puppet-4.10.12-x64-mingw32 lib/puppet/data_providers/hiera_env_data_provider.rb
puppet-4.10.12-universal-darwin lib/puppet/data_providers/hiera_env_data_provider.rb
puppet-4.10.11 lib/puppet/data_providers/hiera_env_data_provider.rb
puppet-4.10.11-x86-mingw32 lib/puppet/data_providers/hiera_env_data_provider.rb
puppet-4.10.11-x64-mingw32 lib/puppet/data_providers/hiera_env_data_provider.rb
puppet-4.10.11-universal-darwin lib/puppet/data_providers/hiera_env_data_provider.rb
puppet-4.10.10 lib/puppet/data_providers/hiera_env_data_provider.rb
puppet-4.10.10-x86-mingw32 lib/puppet/data_providers/hiera_env_data_provider.rb
puppet-4.10.10-x64-mingw32 lib/puppet/data_providers/hiera_env_data_provider.rb
puppet-4.10.10-universal-darwin lib/puppet/data_providers/hiera_env_data_provider.rb
puppet-retrospec-1.6.1 vendor/pup410/lib/puppet/data_providers/hiera_env_data_provider.rb
puppet-retrospec-1.6.0 vendor/pup410/lib/puppet/data_providers/hiera_env_data_provider.rb
puppet-4.10.9 lib/puppet/data_providers/hiera_env_data_provider.rb
puppet-4.10.9-x86-mingw32 lib/puppet/data_providers/hiera_env_data_provider.rb
puppet-4.10.9-x64-mingw32 lib/puppet/data_providers/hiera_env_data_provider.rb
puppet-4.10.9-universal-darwin lib/puppet/data_providers/hiera_env_data_provider.rb