Chef/Deprecations/ChefWindowsPlatformHelper
The Cookstyle cops department: Chef/Deprecations
| Enabled by default | Supports autocorrection | Target Chef Version |
|---|---|---|
| Enabled | Yes | All Versions |
Use platform?('windows') instead of the legacy Chef::Platform.windows? helper
Examples
incorrect
Chef::Platform.windows?
correct
platform?('windows')
platform_family?('windows')
Configurable attributes
| Name | Default value | Configurable values |
|---|---|---|
| Version Added | 6.0.0 | String |
| Include | Array |