lib/vagrant-mutate/box/libvirt.rb in vagrant-mutate-0.3.2 vs lib/vagrant-mutate/box/libvirt.rb in vagrant-mutate-1.0.0

- old
+ new

@@ -1,12 +1,11 @@ require_relative 'box' module VagrantMutate module Box class Libvirt < Box - - def initialize(env, name, dir) + def initialize(env, name, version, dir) super @provider_name = 'libvirt' @supported_input = true @supported_output = true @image_format = 'qcow2' @@ -16,32 +15,31 @@ # since none of below can be determined from the box # we just generate sane values def architecture - return 'x86_64' + 'x86_64' end # kvm prefix is 52:54:00 def mac_address unless @mac octets = 3.times.map { rand(255).to_s(16) } @mac = "525400#{octets[0]}#{octets[1]}#{octets[2]}" end - return @mac + @mac end def cpus - return 1 + 1 end def memory - return 536870912 + 536_870_912 end def disk_interface - return 'virtio' + 'virtio' end - end end end