Sha256: ea8592e9d666810dd8bbbd45b945d5746202f7a8f7d1cea9b9c5890a62ac4342

Contents?: true

Size: 313 Bytes

Versions: 2

Compression:

Stored size: 313 Bytes

Contents

class Zone < Thor

  desc "list", "list zones"
  def list
    cs_cli = CloudstackCli::Helper.new(options[:config])
    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

2 entries across 2 versions & 1 rubygems

Version Path
cloudstack-cli-0.0.3 lib/cloudstack-cli/commands/zone.rb
cloudstack-cli-0.0.2 lib/cloudstack-cli/commands/zone.rb