Class: Puppet::DataProviders::YamlDataProviderFactory Deprecated Private

Inherits:
Plugins::DataProviders::FileBasedDataProviderFactory show all
Defined in:
lib/puppet/data_providers/yaml_data_provider_factory.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

Instance Method Summary collapse

Methods inherited from Plugins::DataProviders::FileBasedDataProviderFactory

#initialize, #resolve_paths

Methods inherited from Plugins::DataProviders::PathBasedDataProviderFactory

#initialize, #resolve_paths, #version

Constructor Details

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

Instance Method Details

#create(name, paths, parent_data_provider) ⇒ 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.



10
11
12
13
14
15
16
# File 'lib/puppet/data_providers/yaml_data_provider_factory.rb', line 10

def create(name, paths, parent_data_provider)
  unless Puppet[:strict] == :off
    Puppet.warn_once(:deprecation, 'Puppet::DataProviders::YamlDataProviderFactory',
    'Puppet::DataProviders::YamlDataProviderFactory is deprecated and will be removed in the next major version of Puppet')
  end
  YamlDataProvider.new(name, paths, parent_data_provider)
end

#path_extensionObject

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.



18
19
20
# File 'lib/puppet/data_providers/yaml_data_provider_factory.rb', line 18

def path_extension
  '.yaml'
end