DeprecatedWindowsVersionCheck
The department is: DeprecatedWindowsVersionCheck
The full name of the cop is: Chef/Deprecations/DeprecatedWindowsVersionCheck
Enabled by default | Supports autocorrection | Target Chef Version |
---|---|---|
Enabled | No | All 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
Name | Default value | Configurable values |
---|---|---|
Version Added | 6.0.0 | String |
Include | Array |