Sha256: 2daaa8e67b127dbaae652bee4dd25a7d7c76f4bce90ddf3cde6d8c26b56b101e
Contents?: true
Size: 511 Bytes
Versions: 32
Compression:
Stored size: 511 Bytes
Contents
module CloudstackClient module Capacity ## # List capacity. def list_capacity(args = {}) params = { 'command' => 'listCapacity', } if args[:zone] zone = get_zone(args[:zone]) unless zone puts "Error: Zone #{args[:zone]} not found" exit 1 end params['zoneid'] = zone['id'] end params['type'] = args[:type] if args[:type] json = send_request(params) json['capacity'] || [] end end end
Version data entries
32 entries across 32 versions & 1 rubygems