Sha256: 365d357b2a0daafa08eed39ce8fded8ae3048b7ed439e499c40e734a38cbe099
Contents?: true
Size: 806 Bytes
Versions: 23
Compression:
Stored size: 806 Bytes
Contents
module Fog module Vsphere class Compute class Real def get_resource_pool(name, cluster_name, datacenter_name) resource_pool = get_raw_resource_pool(name, cluster_name, datacenter_name) raise(Fog::Vsphere::Compute::NotFound) unless resource_pool resource_pool_attributes(resource_pool, cluster_name, datacenter_name) end protected def get_raw_resource_pool(name, cluster_name, datacenter_name) dc = find_raw_datacenter(datacenter_name) cluster = dc.find_compute_resource(cluster_name) name.nil? ? cluster.resourcePool : cluster.resourcePool.traverse(name) end end class Mock def get_resource_pool(name, cluster_name, datacenter_name); end end end end end
Version data entries
23 entries across 23 versions & 1 rubygems