lib/testlab/providers/templates/vagrant/Vagrantfile.erb in testlab-1.6.6 vs lib/testlab/providers/templates/vagrant/Vagrantfile.erb in testlab-1.7.0
- old
+ new
@@ -9,9 +9,12 @@
config.vm.define <%= @id.inspect %> do |testlab|
testlab.vm.hostname = <%= @hostname.inspect %>
testlab.vm.box = <%= @box.inspect %>
testlab.vm.box_url = <%= @box_url.inspect %>
testlab.vm.network(:private_network, :ip => <%= @ip.inspect %>)
+<% @synced_folders.nil? or @synced_folders.each do |synced_folder| -%>
+ testlab.vm.synced_folder *<%= synced_folder.inspect %>
+<% end -%>
testlab.vm.provider :virtualbox do |vb|
vb.name = <%= @hostname.inspect %>
vb.customize(["modifyvm", :id, "--cpus", <%= @cpus.inspect %>])
vb.customize(["modifyvm", :id, "--memory", <%= @memory.inspect %>])