Module: Puppet::Util::ProviderFeatures

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

Overview

TODO:

Unclear what is api and what is private in this module.

This module models provider features and handles checking whether the features are present.

Constant Summary

Instance Method Summary collapse

Instance Method Details

#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.



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