Copy & paste is evil

This commit is contained in:
Fabio Rehm 2013-10-10 12:55:06 -03:00
parent add4908912
commit 23e25c40ab

View file

@ -13,12 +13,12 @@ module Vagrant
@app.call env @app.call env
end end
# This method returns an actual list of VirtualBox shared # This method returns an actual list of synced folders to create and their
# folders to create and their proper path. # proper path.
def shared_folders def shared_folders
{}.tap do |result| {}.tap do |result|
@env[:machine].config.vm.synced_folders.each do |id, data| @env[:machine].config.vm.synced_folders.each do |id, data|
#Ignore disabled shared folders # Ignore disabled shared folders
next if data[:disabled] next if data[:disabled]
# This to prevent overwriting the actual shared folders data # This to prevent overwriting the actual shared folders data
result[id] = data.dup result[id] = data.dup