lib/bib/bib_vagrant.rb in bib-vagrant-0.1.5 vs lib/bib/bib_vagrant.rb in bib-vagrant-0.1.6

- old
+ new

@@ -128,10 +128,14 @@ def prepare_app_settings(vagrantconfig, machine, dna, host_folder_root, applicationlist = 'applications') dna = add_composertoken_to_dna(dna, vagrantconfig) dna['vagrant'][applicationlist].each do |app, app_config| vagrant_share = File.expand_path(app_config['app_root_location']) - host_folder = host_folder_root + "/#{app}" + if dna['vagrant'][applicationlist].count > 1 + host_folder = host_folder_root + "/#{app}" + else + host_folder = host_folder_root + end if vagrantconfig['nfs'] machine.vm.synced_folder host_folder, vagrant_share, type: 'nfs', mount_options: ['nolock,vers=3,udp,noatime,actimeo=1'] elsif vagrantconfig['rsync'] machine.vm.synced_folder host_folder, vagrant_share, type: 'rsync' else