Chef/Modernize/MacOsXUserdefaults
The Cookstyle cops department: Chef/Modernize
Enabled by default | Supports autocorrection | Target Chef Version |
---|---|---|
Enabled | Yes | 14.0+ |
The mac_os_x_userdefaults resource was renamed to macos_userdefaults when it was added to Chef Infra Client 14.0. The new resource name should be used.
Examples
incorrect
mac_os_x_userdefaults 'full keyboard access to all controls' do
domain 'AppleKeyboardUIMode'
global true
value '2'
end
correct
macos_userdefaults 'full keyboard access to all controls' do
domain 'AppleKeyboardUIMode'
global true
value '2'
end
Configurable attributes
Name | Default value | Configurable values |
---|---|---|
Version Added | 5.6.0 | String |
Include | Array |