This repository has been archived by the owner. It is now read-only.
Permalink
Commits on Sep 5, 2013
  1. Merge pull request #16 from jeroenj/defaults-read

    jtimberman committed Sep 5, 2013
    Put key in quotes while running defaults read command
Commits on Sep 3, 2013
  1. Put domain in quotes

    jeroenj committed Sep 3, 2013
    It can also contain spaces. Another way would be to escape spaces, but that makes the recipes less clear.
Commits on Aug 20, 2013
Commits on Mar 27, 2013
  1. Cleanup in README

    jtimberman committed Mar 27, 2013
  2. Ignore failure for killing Dock.app

    jtimberman committed Mar 27, 2013
    It's okay to ignore failure for killing Dock.app. For example, if Chef
    is running on an OS X system where the user is not logged into the
    desktop, Dock won't be running and the kill will fail to find a
    process.
Commits on Mar 3, 2013
  1. Merge pull request #15 from jeroenj/array

    jtimberman committed Mar 3, 2013
    Adds support for arrays
  2. Merge pull request #13 from jeroenj/booleans

    jtimberman committed Mar 3, 2013
    Booleans should be correctly recognized in userdefaults
  3. Adds support for arrays

    jeroenj committed Mar 3, 2013
Commits on Feb 27, 2013
Commits on Jan 27, 2013
  1. Merge pull request #10 from patcon/resource-attr-user

    jtimberman committed Jan 27, 2013
    Add `user` resource attr to `mac_os_x_userdefaults`
Commits on Jan 21, 2013
  1. Merge branch 'master' into resource-attr-user

    patcon committed Jan 21, 2013
    Conflicts:
    	providers/userdefaults.rb
Commits on Dec 7, 2012
Commits on Nov 22, 2012
  1. release v1.4.2

    jtimberman committed Nov 22, 2012
Commits on Aug 20, 2012
  1. release v1.4.0

    jtimberman committed Aug 10, 2012
Commits on Aug 11, 2012
  1. Merge pull request #12 from joemiller/patch-1

    jtimberman committed Aug 11, 2012
    fixed bug preventing the userdefaults recipe from working
Commits on Aug 10, 2012
  1. fixed bug preventing the userdefaults recipe from working

    joemiller committed Aug 10, 2012
    this bug seemed to pretty much break the recipe (chef would error with "cannot find resource named 'new' ...")
  2. Lion fixes, settings recipe/attributes, integers

    jtimberman committed Aug 10, 2012
    * Add settings attribute and recipe to process it (great idea from Ben Bleything's bootstrap)
    * Use integers instead of strings for plain numbers
    * Set resource as updated
    * Support floating point numbers
Commits on Jul 28, 2012
Commits on Apr 15, 2012
  1. Merge pull request #8 from nixgeek/patch-1

    jtimberman committed Apr 15, 2012
    Update to load_current_resource replacing 'truthy' with 'truefalse'.
Commits on Mar 4, 2012
  1. A minor update to documentation to reference false values now being h…

    agh committed Mar 4, 2012
    …andled by the Provider.
  2. Update to load_current_resource replacing 'truthy' with 'truefalse'.

    agh committed Mar 4, 2012
        defaults --help
        <value> is one of:
          -bool[ean] (true | false | yes | no)
    
    Right now we only convert 'TRUE' or 'true' which leads to a situation whereby chef-client reapplies settings (defaults write <DOMAIN> <KEY> -bool 'false') upon each run because the recipe value may validly be 'false'.
    
    Example recipe snippet which triggers this situation -
    
      mac_os_x_userdefaults "dont show quarantine warnings on downloaded files" do
        domain "com.apple.LaunchServices"
        key "LSQuarantine"
        value "false"
        type "bool"
        notifies :run, 'execute[killall Finder]'
        only_if { node[:platform_version].to_f >= 10.5 }
      end
    
    I've also taken the opportunity to extend things so that "YES" and "yes" are considered to be true values, because they would be accepted on the command-line by /usr/bin/defaults as valid input.
Commits on Feb 26, 2012
  1. release v1.3.6

    jtimberman committed Feb 26, 2012
Commits on Jan 2, 2012
  1. Merge pull request #6 from bleything/master

    jtimberman committed Jan 2, 2012
    add hashes to userdefaults
Commits on Dec 25, 2011
Commits on Dec 21, 2011
  1. release version 1.3.0

    jtimberman committed Dec 21, 2011
Commits on Dec 10, 2011
  1. release version 1.2.2

    jtimberman committed Dec 10, 2011
  2. importing changes from my chef-repo

    jtimberman committed Dec 10, 2011
    * ensure lion tweaks only runs on lion
    * use strings not integers
    * move mail tweaks to their own recipe
    * add mail archive hotkey
  3. Merge pull request #3 from bleything/tweak_userdefaults

    jtimberman committed Dec 10, 2011
    Tweak userdefaults