Chef/Deprecations/ResourceOverridesProvidesMethod
The Cookstyle cops department: Chef/Deprecations
| Enabled by default | Supports autocorrection | Target Chef Version |
|---|---|---|
| Enabled | No | All Versions |
Some providers in resources override the provides? method, used to check whether they are a valid provider on the current platform. In Chef Infra Client 13, this will cause an error. Instead use provides :SOME_PROVIDER_NAME to register the provider.
Examples
incorrect
def provides?
true
end
correct
provides :SOME_PROVIDER_NAME
Configurable attributes
| Name | Default value | Configurable values |
|---|---|---|
| Version Added | 5.7.0 | String |
| Include |
| Array |