Sha256: fc2bc419f5b069555e14f081937bcb2fee2b9ca89f31e60d1bb447c9964890c7
Contents?: true
Size: 444 Bytes
Versions: 50
Compression:
Stored size: 444 Bytes
Contents
module CloudstackClient module Host ## # Lists hosts. def list_hosts(args = {}) params = { 'command' => 'listHosts' } if args[:zone] zone = get_zone(args[:zone]) unless zone puts "Error: zone #{args[:project]} not found." exit 1 end params['zoneid'] = zone['id'] end json = send_request(params) json['host'] || [] end end end
Version data entries
50 entries across 50 versions & 3 rubygems