Skip to content

Instantly share code, notes, and snippets.

@chef
Created February 8, 2010 22:30
Show Gist options
  • Save chef/298663 to your computer and use it in GitHub Desktop.
Save chef/298663 to your computer and use it in GitHub Desktop.
chef > node.set[:foo] = [{}, {}]
=> [{}, {}]
chef > node[:foo].each { |f| f[:name] = 3 }
=> [{"name"=>3}, {"name"=>3}]
chef > node.foo
=> [{"name"=>3}, {"name"=>3}]
chef > node[:foo]
=> [{"name"=>3}, {"name"=>3}]
chef > recipe
chef:recipe > node[:foo]
=> [{"name"=>3}, {"name"=>3}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment