Skip to main content

Chef/Deprecations/DeprecatedWindowsVersionCheck

Cookstyle cops page

The Cookstyle cops department: Chef/Deprecations

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledNoAll Versions

Don’t use the deprecated older_than_win_2012_or_8? helper. Windows versions before 2012 and 8 are now end of life and this helper will always return false.

Examples

incorrect

if older_than_win_2012_or_8?
  # do some legacy things
end

Configurable attributes

NameDefault valueConfigurable values
Version Added6.0.0String
Include
    Array

    Thank you for your feedback!

    ×










    Search Results