Skip to main content

Chef/Deprecations/LaunchdDeprecatedHashProperty

Cookstyle cops page

The Cookstyle cops department: Chef/Deprecations

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYes12.19+

The launchd resource’s hash property was renamed to plist_hash in Chef Infra Client 13+ to avoid conflicts with Ruby’s hash class.

Examples

incorrect

launchd 'foo' do
  hash foo: 'bar'
end

correct

launchd 'foo' do
  plist_hash foo: 'bar'
end

Configurable attributes

NameDefault valueConfigurable values
Version Added5.5.0String
Include
    Array

    Thank you for your feedback!

    ×









    Search Results