Skip to content
Commits on Mar 3, 2014
  1. @SteveMarshall @juliandunn

    Complex array values break unless quoted.

    SteveMarshall committed with juliandunn
    When passing complex (e.g. multi-line) array values, `defaults write` errors unless they're properly quoted.
Commits on Sep 9, 2013
  1. @jeroenj
Commits on Sep 3, 2013
  1. @jeroenj

    Put domain in quotes

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

    Merge pull request #15 from jeroenj/array

    jtimberman committed
    Adds support for arrays
  2. @jeroenj

    Adds support for arrays

    jeroenj committed
Commits on Feb 27, 2013
  1. @jeroenj
Commits on Jan 21, 2013
  1. @patcon

    Merge branch 'master' into resource-attr-user

    patcon committed
Commits on Dec 7, 2012
  1. @patcon
Commits on Aug 10, 2012
  1. @joemiller

    fixed bug preventing the userdefaults recipe from working

    joemiller committed
    this bug seemed to pretty much break the recipe (chef would error with "cannot find resource named 'new' ...")
  2. @jtimberman

    Lion fixes, settings recipe/attributes, integers

    jtimberman committed
    * 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
  1. @patcon
Commits on Mar 4, 2012
  1. @agh

    Update to load_current_resource replacing 'truthy' with 'truefalse'.

    agh committed
        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 ""
        key "LSQuarantine"
        value "false"
        type "bool"
        notifies :run, 'execute[killall Finder]'
        only_if { node[:platform_version].to_f >= 10.5 }
    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 Dec 25, 2011
  1. @bleything
Commits on Dec 21, 2011
  1. @jtimberman
  2. @jtimberman
  3. @jtimberman
  4. @jtimberman
Commits on Dec 9, 2011
  1. @bleything
  2. @bleything
  3. @bleything

    fix domain specification

    bleything committed
    -g is a shortcut for specifying NSGlobalDomain. As it was, it was
    possible to specify a domain and mark the setting as global, which is
    incorrect and would fail. This change makes anything marked as global go
    into NSGlobalDomain.
  4. @bleything
Commits on Nov 27, 2011
  1. @sax
Commits on Aug 1, 2011
  1. @jtimberman

    cookbook version 1.2.0 release

    jtimberman committed
    * add plist_file LWRP
    * add recipes for managing various useful user defaults
Commits on Jul 24, 2011
  1. @jtimberman

    v1.0.0, initial commit

    jtimberman committed
Something went wrong with that request. Please try again.