InvalidPlatformFamilyHelper
The department is: InvalidPlatformFamilyHelper
The full name of the cop is: Chef/Correctness/InvalidPlatformFamilyHelper
Enabled by default | Supports autocorrection | Target Chef Version |
---|---|---|
Enabled | Yes | All Versions |
Pass valid platform families to the platform_family?
helper. See Infra Language: Platform Family for a complete list of platform families.
Examples
incorrect
platform_family?('redhat')
platform_family?('sles')
#### incorrect
```ruby
platform_family?('rhel')
platform_family?('suse')
Configurable attributes
Name | Default value | Configurable values |
---|---|---|
Version Added | 5.15.0 | String |
Include | Array |