Skip to main content

DeprecatedWindowsVersionCheck

The department is: DeprecatedWindowsVersionCheck

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

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