Sha256: 8f2745beefe7fa9762082d200a9c3d3ffb69113b00280b8fefc2e3338d9fe227

Contents?: true

Size: 341 Bytes

Versions: 5

Compression:

Stored size: 341 Bytes

Contents

class Zone < CloudstackCli::Base

  desc "zone list", "list zones"
  def list
    zones = client.list_zones
    if zones.size < 1
      puts "No projects found"
    else
      table = [["Name", "Description"]]
      zones.each do |zone|
        table << [zone['name'] ,zone['description']]
      end
    end
    print_table(table)
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cloudstack-cli-0.4.3 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-0.4.2 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-0.4.1 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-0.4.0 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-0.3.11 lib/cloudstack-cli/commands/zone.rb