class Virt::VMWare::Volume

Public Instance Methods

default_template_path() click to toggle source
# File lib/virt/vmware/volume.rb, line 8
def default_template_path
  "vmware/volume.xml.erb"
end
default_type() click to toggle source
# File lib/virt/vmware/volume.rb, line 4
def default_type
  "raw"
end
name=(name) click to toggle source
# File lib/virt/vmware/volume.rb, line 16
def name= name
  super name
  @name += ".vmdk" unless name.match(%r.*\.vmdk$/)
end
path() click to toggle source
# File lib/virt/vmware/volume.rb, line 12
def path
  "[#{pool.name}] #{self}"
end
to_s() click to toggle source
# File lib/virt/vmware/volume.rb, line 21
def to_s
  "#{title}/#{name}"
end