lib/config_builder/model/provider/virtualbox.rb in vagrant-config_builder-0.5.0 vs lib/config_builder/model/provider/virtualbox.rb in vagrant-config_builder-0.6.0
- old
+ new
@@ -18,16 +18,16 @@
end
def to_proc
Proc.new do |vm_config|
vm_config.provider 'virtualbox' do |vb_config|
- vb_config.name = attr(:name) if attr(:name)
+ with_attr(:name) { |val| vb_config.name = val }
attr(:customize).each do |cmd|
vb_config.customize cmd
end
- vb_config.gui = attr(:gui) if attr(:gui)
+ with_attr(:gui) { |val| vb_config.gui = val }
end
end
end
ConfigBuilder::Model::Provider.register('virtualbox', self)