Sha256: 0b3e4520fc45f978a282f4191a5381e4c30143355e323bcf9e01ced9e9cb878b
Contents?: true
Size: 583 Bytes
Versions: 1
Compression:
Stored size: 583 Bytes
Contents
module VagrantMutate module Provider class Libvirt < Provider def initialize @name = 'libvirt' @supported_input = true, @supported_output = true, @image_format = 'qcow2', @image_name = 'box.img' end def generate_metadata(input_box, output_box) metadata = { 'provider' => output_box.provider.name, 'format' => 'qcow2', 'virtual_size' => ( input_box.determine_virtual_size.to_f / (1024 * 1024 * 1024) ).ceil } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-mutate-0.1.2 | lib/vagrant-mutate/provider/libvirt.rb |