Skip to main content

DeprecatedWindowsVersionCheck

All Cookstyle Cops


The department is: Chef/Deprecations

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
Exclude
  • **/metadata.rb
  • **/Berksfile
Array

Was this page helpful?