Sha256: d0e4a102307d7430b516b18da3271cd92cb084509f987828f2e606e54e0dbbcd

Contents?: true

Size: 333 Bytes

Versions: 27

Compression:

Stored size: 333 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 Description)]
      zones.each do |zone|
        table << [zone['name'] ,zone['description']]
      end
    end
    print_table(table)
  end

end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
cloudstack-cli-0.15.1 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-0.15.0 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-0.14.1 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-0.14.0 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-0.13.1 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-0.13.0 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-0.12.3 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-0.12.2 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-0.12.1 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-0.12.0 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-0.11.2 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-0.11.1 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-0.11.0 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-0.10.2 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-0.10.1 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-0.10.0 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-0.9.1 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-0.9.0 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-0.8.3 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-0.8.2 lib/cloudstack-cli/commands/zone.rb