Sha256: 2c71147376ac1e66f3e8f90f82dac8fbb34ee091f05410abe6228c790584f39b
Contents?: true
Size: 816 Bytes
Versions: 23
Compression:
Stored size: 816 Bytes
Contents
module Fog module Vsphere class Compute class Real def get_storage_pod(name, datacenter_name) storage_pod = list_storage_pods(datacenter: datacenter_name).detect { |pod| pod[:name] == name } raise(Fog::Vsphere::Compute::NotFound) unless storage_pod storage_pod end protected def get_raw_storage_pod(name, datacenter_name) raw_storage_pods(datacenter_name).detect { |pod| pod.name == name } end def raw_storage_pods(datacenter_name) list_container_view(datacenter_name, 'StoragePod') end end class Mock def get_storage_pod(name, datacenter_name) list_storage_pods(datacenter: datacenter_name).detect { |h| h[:name] == name } end end end end end
Version data entries
23 entries across 23 versions & 1 rubygems