vagrant-parallels 2.2.0 → 2.2.1
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/CHANGELOG.md +5 -0
- data/lib/vagrant-parallels/cap/mount_options.rb +12 -2
- data/lib/vagrant-parallels/synced_folder.rb +3 -3
- data/lib/vagrant-parallels/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ff32a59a5a53f6225bc9595f05ecc24583ffefab4cebd77ad5cbb8901c8725d
|
4
|
+
data.tar.gz: 33664d070c0831774d66bfd3c3da5b5a1d3c20456521c543f01aec4c0a9a8911
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fec7982dd9ad7948f5830fae0a13beeada091a0464076df096ead3e8ec03da22f1c4f6f15d7a3af997e8ebd3ea294bb039d326a3ada5b9e16d242acd3fcce76f
|
7
|
+
data.tar.gz: fae1a0a7b2e7b414dcba9110309fa41ecfef8244616a6c34d9b9c2ac790a89db648f8fb78bd022f48810e4755bbe15c15cac69721571a0f33c5cecc2965c178a
|
data/CHANGELOG.md
CHANGED
@@ -30,8 +30,18 @@ module VagrantPlugins
|
|
30
30
|
return PRL_MOUNT_TYPE
|
31
31
|
end
|
32
32
|
|
33
|
-
|
34
|
-
|
33
|
+
## We have to support 2 different expected interfaces of `mount_name` call:
|
34
|
+
## Vagrant < 2.2.15: `def self.mount_name(machine, data)`
|
35
|
+
## Vagrant >= 2.2.15: `def self.mount_name(machine, id, data)`
|
36
|
+
## https://github.com/Parallels/vagrant-parallels/issues/384
|
37
|
+
def self.mount_name(*args)
|
38
|
+
if args.length >= 3
|
39
|
+
id = args[1]
|
40
|
+
else
|
41
|
+
id = args[-1][:guestpath]
|
42
|
+
end
|
43
|
+
|
44
|
+
id.gsub(/[*":<>?|\/\\]/,'_').sub(/^_/, '')
|
35
45
|
end
|
36
46
|
end
|
37
47
|
end
|
@@ -19,7 +19,7 @@ module VagrantPlugins
|
|
19
19
|
end
|
20
20
|
|
21
21
|
defs << {
|
22
|
-
name: data[:plugin].capability(:mount_name, data),
|
22
|
+
name: data[:plugin].capability(:mount_name, id, data),
|
23
23
|
hostpath: hostpath.to_s,
|
24
24
|
}
|
25
25
|
end
|
@@ -62,7 +62,7 @@ module VagrantPlugins
|
|
62
62
|
# Mount the actual folder
|
63
63
|
machine.guest.capability(
|
64
64
|
:mount_parallels_shared_folder,
|
65
|
-
data[:plugin].capability(:mount_name, data),
|
65
|
+
data[:plugin].capability(:mount_name, id, data),
|
66
66
|
data[:guestpath],
|
67
67
|
data
|
68
68
|
)
|
@@ -84,7 +84,7 @@ module VagrantPlugins
|
|
84
84
|
end
|
85
85
|
|
86
86
|
# Remove the shared folders from the VM metadata
|
87
|
-
names = folders.map { |
|
87
|
+
names = folders.map { |id, data| data[:plugin].capability(:mount_name, id, data) }
|
88
88
|
driver(machine).unshare_folders(names)
|
89
89
|
end
|
90
90
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-parallels
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mikhail Zholobov
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-04-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|