Chef/Deprecations/LaunchdDeprecatedHashProperty
The Cookstyle cops department: Chef/Deprecations
Enabled by default | Supports autocorrection | Target Chef Version |
---|---|---|
Enabled | Yes | 12.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
Name | Default value | Configurable values |
---|---|---|
Version Added | 5.5.0 | String |
Include | Array |