vagrant-dnsdock-hostupdater 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vagrant-dnsdock-hostupdater/plugin.rb +13 -10
- data/lib/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: d951f80be21ddd3806a1d67915ac5f024243c93a
|
4
|
+
data.tar.gz: 9594437722a82084555200e3fa808a9d75c4a550
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78b17e8553daa876997b53a698045efbbafb3cc85a8a6fc4860f600c63dd9aab97976ae030b554366c823696ec67ad38c9d6296d7325ccf69a8f32bfa7b2ff0b
|
7
|
+
data.tar.gz: 4b0740a1b7c7e9e42abf3d30183e255e35ccda8adb338618e4009b0e246432314107b2344ad88f9f86a6169fbf68ea891f54f5af3194f2fb2686fd2c352b6680
|
@@ -70,19 +70,22 @@ module Vagrant
|
|
70
70
|
|
71
71
|
close_manager
|
72
72
|
|
73
|
-
|
74
|
-
|
73
|
+
pid = fork do
|
74
|
+
exec "ruby #{server_path}"
|
75
|
+
# pid = spawn "ruby #{server_path}"
|
75
76
|
log "Started server with PID: #{pid}"
|
76
77
|
|
77
|
-
if pid
|
78
|
-
pid_file = File.open(pid_path, 'w')
|
79
|
-
pid_file << pid
|
80
|
-
pid_file.close
|
81
|
-
log "Wrote server PID (#{pid}) to #{pid_path}"
|
82
|
-
Process.detach(pid)
|
83
|
-
@started = true
|
84
|
-
end
|
85
78
|
end
|
79
|
+
|
80
|
+
if pid
|
81
|
+
pid_file = File.open(pid_path, 'w')
|
82
|
+
pid_file << pid
|
83
|
+
pid_file.close
|
84
|
+
log "Wrote server PID (#{pid}) to #{pid_path}"
|
85
|
+
@started = true
|
86
|
+
end
|
87
|
+
Process.detach(pid)
|
88
|
+
|
86
89
|
end
|
87
90
|
|
88
91
|
action_hook(:up, :machine_action_up) { init_plugin }
|
data/lib/version.rb
CHANGED