Skip to main content

InvalidPlatformFamilyHelper

All Cookstyle Cops


The department is: Chef/Correctness

The full name of the cop is: Chef/Correctness/InvalidPlatformFamilyHelper


Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

Pass valid platform families to the platform_family? helper.

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

Was this page helpful?