Class: ZoneList

Inherits:
Command show all
Defined in:
lib/zone.rb

Instance Attribute Summary

Attributes inherited from Command

#desc, #name

Instance Method Summary collapse

Methods inherited from Command

#add_arg, #add_cmd, #add_flow, #add_flow_from_usage, #add_input, #add_option, #add_options, #command_name?, #create_args, #create_flows, #get_args_used, #init, #initialize, #run, #show_help, #show_help_option

Constructor Details

This class inherits a constructor from Command

Instance Method Details

#execute(args, rest) ⇒ Object



9
10
11
12
13
# File 'lib/zone.rb', line 9

def execute(args, rest)
  zones = Route.do.get_all_zones
  Route.do.translate_zonelist(zones)
  StructurePrint.new('~').structure_print(zones, "zonelist")
end