public
Created

  • Download Gist
gistfile1.txt
1 2 3 4
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"]

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.