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.4.1 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-1.4.0 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-1.3.3 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-1.3.2 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-1.3.1 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-1.3.0 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-1.2.7 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-1.2.6 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-1.2.5 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-1.2.4 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-1.2.3 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-1.2.1 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-1.2.0 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-1.1.0 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-1.0.8 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-1.0.7 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-1.0.6 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-1.0.5 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-1.0.4 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-1.0.3 lib/cloudstack-cli/commands/zone.rb