vagrant-vmware-freebsd 1.0.3 → 1.0.4
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2508eb8c812499bbe10dd7cfa4058462a7bd1241
|
|
4
|
+
data.tar.gz: 6c2f416905d28613d824a799485a7e27a768463a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 69b4f964044eb9394f9d46bc9e7e86bf2f2b4b3006f3e569982285cef2289a5dccd9bebcf752db99863adb32adcb7d426ce96aac5c2bae7eac7c6ae1306efdca
|
|
7
|
+
data.tar.gz: 06dd2769363e391fcdcd39bb274b2da9c857f2056b6d207349cb448c0e9bb10e465b86ee44854b0c93ff4011e933ee218af476b28c86bead8fa129c9c30c9418
|
|
@@ -6,9 +6,16 @@ module VagrantPlugins
|
|
|
6
6
|
machine.communicate.tap do |comm|
|
|
7
7
|
comm.sudo("rm \"#{guestpath}\"") if comm.test("test -L \"#{guestpath}\"", :sudo => true)
|
|
8
8
|
comm.sudo("rm -Rf \"#{guestpath}\"") if comm.test("test -d \"#{guestpath}\"", :sudo => true)
|
|
9
|
-
comm.sudo("mkdir -p \"#{guestpath}\"") # mkdir -p doesn't care if it exists already
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
intermediate_dir = File.dirname(guestpath)
|
|
11
|
+
comm.sudo("mkdir -p \"#{intermediate_dir}\"") # mkdir -p doesn't care if it exists already
|
|
12
|
+
|
|
13
|
+
unless comm.test("test -d \"/mnt/hgfs/#{name}\"")
|
|
14
|
+
comm.sudo("mkdir -p /mnt/hgfs")
|
|
15
|
+
comm.sudo("mount -t vmhgfs \".host:/\" \"/mnt/hgfs\"")
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
comm.sudo("ln -s \"/mnt/hgfs/#{name}\" \"#{guestpath}\"")
|
|
12
19
|
end
|
|
13
20
|
end
|
|
14
21
|
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |spec|
|
|
4
4
|
spec.name = "vagrant-vmware-freebsd"
|
|
5
|
-
spec.version = "1.0.
|
|
5
|
+
spec.version = "1.0.4"
|
|
6
6
|
spec.authors = ["Geoff Garside"]
|
|
7
7
|
spec.email = ["geoff@geoffgarside.co.uk"]
|
|
8
8
|
spec.description = %q{Provides vagrant capabilities for VMware FreeBSD machines.}
|