Class: Chef::Knife::NodeStatus

Inherits:
Chef::Knife show all
Defined in:
lib/chef/knife/node_status.rb

Instance Method Summary collapse

Instance Method Details

#runObject



23
24
25
26
27
28
29
# File 'lib/chef/knife/node_status.rb', line 23

def run
  rest = Chef::REST.new(Chef::Config[:chef_server_url])

  get_node_statuses(name_args).each do |node_status|
    puts "#{node_status['node_name']}\t#{node_status['availability']}"
  end
end