Sha256: 7e78ec5468521617a91a872715197bd6aa23334fefb1a92a860daac397ccb232

Contents?: true

Size: 295 Bytes

Versions: 1

Compression:

Stored size: 295 Bytes

Contents

class Zone < Thor

  desc "list", "list zones"
  def list
    cs_cli = CloudstackCli::Helper.new
    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

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cloudstack-cli-0.0.1 lib/cloudstack-cli/commands/zone.rb