Skip to main content

Chef/Deprecations/ChefWindowsPlatformHelper

Cookstyle cops page

The Cookstyle cops department: Chef/Deprecations

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll 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

NameDefault valueConfigurable values
Version Added6.0.0String
Include
    Array

    Thank you for your feedback!

    ×









    Search Results