class Virt::KVM::Volume

Public Instance Methods

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