Class: Chef::Knife::GoiardiNodeStatus

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

Instance Method Summary collapse

Instance Method Details

#runObject



23
24
25
26
27
28
29
# File 'lib/chef/knife/goiardi_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['status']}"
  end
end