Class: Zone

Inherits:
Thor
  • Object
show all
Defined in:
lib/cloudstack-cli/commands/zone.rb

Instance Method Summary collapse

Instance Method Details

#listObject



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/cloudstack-cli/commands/zone.rb', line 4

def list
  cs_cli = CloudstackCli::Helper.new(options[:config])
  zones = cs_cli.zones
  if zones.size < 1
    puts "No projects found"
  else
    zones.each do |zone|
      puts "#{zone['name']} - #{zone['description']}"
    end
  end
end