Sha256: ef5ce8765443432b2365f575b7dbde21a50a9c1187078ed450d3632537b382b8

Contents?: true

Size: 408 Bytes

Versions: 27

Compression:

Stored size: 408 Bytes

Contents

class Zone < CloudstackCli::Base

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

end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
cloudstack-cli-1.0.2 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-1.0.1 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-1.0.0 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-1.0.0.rc4 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-1.0.0.rc3 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-1.0.0.rc2 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-1.0.0.rc1 lib/cloudstack-cli/commands/zone.rb