Class: Knifecosmic::CosmicZoneList
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- Knifecosmic::CosmicZoneList
- Includes:
- Chef::Knife::KnifecosmicBaseList
- Defined in:
- lib/chef/knife/cosmic_zone_list.rb
Instance Method Summary collapse
Methods included from Chef::Knife::KnifecosmicBaseList
included, #list_object, #list_object_fields, #output_format
Instance Method Details
#run ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/chef/knife/cosmic_zone_list.rb', line 35 def run columns = [ 'Name :name', 'Network Type :networktype', 'Security Groups :securitygroupsenabled' ] params = { 'command' => "listZones" } params['filter'] = locate_config_value(:filter) if locate_config_value(:filter) params['keyword'] = locate_config_value(:keyword) if locate_config_value(:keyword) result = connection.list_object(params, "zone") list_object(columns, result) end |