Module: FogExtensions::Vsphere::Folder

Defined in:
lib/fog_extensions/vsphere/folder.rb

Instance Method Summary collapse

Instance Method Details

#to_labelObject


4
5
6
7
8
9
10
# File 'lib/fog_extensions/vsphere/folder.rb', line 4

def to_label
  if parent and parent != datacenter
    "#{parent} / #{name}"
  else
    name == "vm" ? "VM Folder" : name
  end
end