Skip to main content

Chef/Correctness/InvalidPlatformFamilyHelper

Cookstyle cops page

The Cookstyle cops department: Chef/Correctness

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll 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

NameDefault valueConfigurable values
Version Added5.15.0String
Include
    Array

    Thank you for your feedback!

    ×










    Search Results