Sha256: da4d42e3f718db4e7f20aa1a7bc3cb6e735212ead7c45c793a3343b62d211d3c
Contents?: true
Size: 407 Bytes
Versions: 22
Compression:
Stored size: 407 Bytes
Contents
require 'rubygems' require 'abiquo' require 'pp' auth = Abiquo::BasicAuth.new('Abiquo', 'admin', 'admin') api = Abiquo::Resource('http://as-testing.bcn.abiquo.com:8080/api', auth) # # Iterate over all the racks and print the rack name and the hypervisors underneath # api.datacenters.first.racks.each do |rack| puts "- RACK [#{rack.name}]" rack.machines.each do |m| puts "---" + m.name end end
Version data entries
22 entries across 22 versions & 1 rubygems