Created
January 30, 2014 17:17
-
-
Save happymcplaksin/8713751 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'pp' | |
facts2get = %w(orgName numberOfVApps memoryUsedMB memoryLimitMB memoryAllocationMB cpuUsedMhz cpuLimitMhz cpuAllocationMhz storageUsedMB storageLimitMB storageAllocationMB cpuOverheadMhz memoryOverheadMB storageOverheadMB) | |
vcloud.get_execute_query("adminOrgVdc").body[:AdminVdcRecord].each do |vdc| | |
facts = Hash.new | |
facts2get.each do |fact| | |
facts[fact] = vdc[fact.to_sym] | |
end | |
orgs[facts['orgName']] = facts | |
end | |
pp orgs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment