Sha256: 4e4ff93c4cbb00a7831775ad074ed0dfd143e9c90f11aa0c6414e832ca7d0608
Contents?: true
Size: 702 Bytes
Versions: 28
Compression:
Stored size: 702 Bytes
Contents
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved. # SPDX-License-Identifier: MIT class RbVmomi::VIM::Datacenter # Traverse the given inventory +path+ to find a ComputeResource. def find_compute_resource path hostFolder.traverse path, RbVmomi::VIM::ComputeResource end # Find the Datastore with the given +name+. def find_datastore name datastore.find { |x| x.name == name } end # Traverse the given inventory +path+ to find a VirtualMachine. def find_vm path vmFolder.traverse path, RbVmomi::VIM::VirtualMachine end # Traverse the given inventory +path+ to find a Folder. def find_folder path vmFolder.traverse path, RbVmomi::VIM::Folder end end
Version data entries
28 entries across 26 versions & 3 rubygems