Skip to main content

ChefWindowsPlatformHelper

The department is: ChefWindowsPlatformHelper

The full name of the cop is: Chef/Deprecations/ChefWindowsPlatformHelper

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

Was this page helpful?

×









Search Results