Sous-Chefs-Boneyard / mac_os_x

This cookbook has been deprecated
https://supermarket.chef.io/cookbooks/mac_os_x
Apache License 2.0
75 stars 25 forks source link

userdefaults should handle deleting and adding keys #27

Open kameghamegha opened 7 years ago

kameghamegha commented 7 years ago

Here is an example of an execute statement I haven't been able to put into the userdefaults resource and I believe I should be able to:

execute 'Disable automatic login' do
  command 'defaults delete /Library/Preferences/com.apple.loginwindow '\
          'autoLoginUser'
  only_if 'defaults read /Library/Preferences/com.apple.loginwindow | '\
          'grep "autoLoginUser"'
 end