Expand file paths relative to the root_path

This commit is contained in:
Seth Vargo 2015-01-04 18:06:16 -05:00
parent fd3c1c6ebb
commit 50c1c0756e
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ module VagrantPlugins
files = Hash[*all_files.flat_map do |file|
relative_path = relative_path_for(file, config.dir)
destination = File.expand_path(File.join(config.destination, relative_path))
file = File.expand_path(file, env.root_path)
[file, destination]
end]