Skip to content

Instantly share code, notes, and snippets.

@jtimberman
Created September 30, 2011 21:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtimberman/1254993 to your computer and use it in GitHub Desktop.
Save jtimberman/1254993 to your computer and use it in GitHub Desktop.
chef:recipe > nodenames = search(:node,"*:*").map {|n| n['name']}
=> [nil, nil, nil, nil, nil, nil]
chef:recipe > nodenames = search(:node,"*:*").map {|n| n.name}
=> ["cask", "virt1test", "htpc", "merlot", "doppelbock", "cider.int"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment