vagrant-reflect 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/vagrant-reflect/util/syncer.rb +5 -3
- data/lib/vagrant-reflect/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 27514930e4a083e72bf754603e5cf8b1a4e4edfe
|
|
4
|
+
data.tar.gz: 143c954865bc3b8d4292eba8fd13e87f8582a70a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 292239d704ae4416df60d289d695456b7d5ae1bf71c743572b78e9a046dabc673d12cf7880443c5a76ea8cfecabb3fb0eb637169d88097f4e56ea951acb5d4a3
|
|
7
|
+
data.tar.gz: 378cfc2e9047b6fa9f3b2b9378e7d9c42b94ffc34beb2326962a5d4257fb53ded9a87428978f0875dab365c1d0f49059b7a5a6e01bd44172c25dfdc5e7c28f41
|
|
@@ -243,9 +243,11 @@ module VagrantReflect
|
|
|
243
243
|
loop do
|
|
244
244
|
parent = File.dirname(parent)
|
|
245
245
|
break if parent == '/'
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
end
|
|
246
|
+
next if File.exist?(@hostpath + parent)
|
|
247
|
+
# Insertion order is maintained so ensure we move repeated paths to
|
|
248
|
+
# end so they are deleted last
|
|
249
|
+
dirs.delete parent
|
|
250
|
+
dirs[parent] = @guestpath + parent
|
|
249
251
|
end
|
|
250
252
|
end
|
|
251
253
|
|