Merge pull request #161 from optiflows/shared_disabled

Respect Vagrantfile options to disable synced folders
This commit is contained in:
Fabio Rehm 2013-10-10 08:50:36 -07:00
commit 7bca20a166

View file

@ -18,6 +18,8 @@ module Vagrant
def shared_folders
{}.tap do |result|
@env[:machine].config.vm.synced_folders.each do |id, data|
#Ignore disabled shared folders
next if data[:disabled]
# This to prevent overwriting the actual shared folders data
result[id] = data.dup
end