class Chef::Knife::MaasServerShow

Public Instance Methods

run() click to toggle source
# File lib/chef/knife/maas_server_show.rb, line 15
def run
  unless system_id = locate_config_value(:system_id) || name_args[0]
    ui.error('You must provide the system id of the node')
  end
  ui.info(Chef::JSONCompat.to_json_pretty(client.show_node(system_id)))
end