Class: Fog::Vsphere::Compute::Folder
- Inherits:
-
Model
- Object
- Model
- Fog::Vsphere::Compute::Folder
- Defined in:
- lib/fog/vsphere/models/compute/folder.rb
Instance Method Summary collapse
- #destroy ⇒ Object
- #to_s ⇒ Object
-
#vms(options = {}) ⇒ Object
Pass :recursive => true to get a Servers object that searches for VM names recursively.
Instance Method Details
#destroy ⇒ Object
23 24 25 |
# File 'lib/fog/vsphere/models/compute/folder.rb', line 23 def destroy service.folder_destroy(path, datacenter) end |
#to_s ⇒ Object
19 20 21 |
# File 'lib/fog/vsphere/models/compute/folder.rb', line 19 def to_s name end |
#vms(options = {}) ⇒ Object
Pass :recursive => true to get a Servers object that searches for VM names recursively
14 15 16 17 |
# File 'lib/fog/vsphere/models/compute/folder.rb', line 14 def vms( = {}) return [] if type.to_s != 'vm' service.servers(folder: path, datacenter: datacenter, recursive: [:recursive]) end |