class Chef::Knife::MaasServerStop
Public Instance Methods
run()
click to toggle source
# File lib/chef/knife/maas_server_stop.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 print_node_status(client.stop_node(system_id)) end