Method: Chef::Node.list
- Defined in:
- lib/chef/node.rb
.list(inflate = false) ⇒ Object
444 445 446 447 448 449 450 451 452 453 454 |
# File 'lib/chef/node.rb', line 444 def self.list(inflate=false) if inflate response = Hash.new Chef::Search::Query.new.search(:node) do |n| response[n.name] = n unless n.nil? end response else Chef::REST.new(Chef::Config[:chef_server_url]).get_rest("nodes") end end |