module Virt::Util

Public Instance Methods

to_gb(bytes) click to toggle source
# File lib/virt/util.rb, line 11
def to_gb bytes
  bytes.to_i / 1073741824
end
xml() click to toggle source

return templated xml to be used by libvirt

# File lib/virt/util.rb, line 7
def xml
  ERB.new(template, nil, '-').result(binding)
end