Chef/Correctness/InvalidPlatformHelper
The Cookstyle cops department: Chef/Correctness
Enabled by default | Supports autocorrection | Target Chef Version |
---|---|---|
Enabled | No | All Versions |
Pass valid platforms to the platform?
helper. See Infra Language: Platform for a list of many common platform values.
Examples
incorrect
platform?('darwin')
platform?('rhel')
platform?('sles')
correct
platform?('mac_os_x')
platform?('redhat')
platform?('suse')
Configurable attributes
Name | Default value | Configurable values |
---|---|---|
Version Added | 5.15.0 | String |
Include | Array |