Skip to main content

UseChefLanguageSystemdHelper

All Cookstyle Cops


The department is: Chef/Modernize

The full name of the cop is: Chef/Modernize/UseChefLanguageSystemdHelper


Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYes15.5+

Chef Infra Client 15.5 and later include a systemd? helper for checking if a Linux system uses systemd.

Examples

incorrect

node['init_package'] == 'systemd'

correct

systemd?

Configurable attributes

NameDefault valueConfigurable values
Version Added7.24.0String
Exclude
  • **/metadata.rb
  • **/Berksfile
Array

Was this page helpful?

×








Search Results