Method: Puppet::Util::ProviderFeatures#provider_feature

Defined in:
lib/puppet/util/provider_features.rb

#provider_feature(name) ⇒ ProviderFeature

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.

Note:

Should only be used for testing.

Returns a provider feature instance by name.

Parameters:

  • name (String)

    the name of the feature to return

Returns:



178
179
180
181
182
# File 'lib/puppet/util/provider_features.rb', line 178

def provider_feature(name)
  return nil unless defined?(@features)

  @features[name]
end