vagrant-foodshow 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2d307bf3828b1e584e358f072df93a052f0b8bd
|
4
|
+
data.tar.gz: 5a5acf66c9ec0bfb13ebb06c7ffd2f6cb0fad1dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da9c0eed3efd22447f92cc801966629f415d008f50d16360ab298142a502d6333d9b5bc50465ec3ff633aa23c86427f2996620651aee26ffb3c2540163a73c49
|
7
|
+
data.tar.gz: b336574a34ba31dccbf4ec5006a7b2aa29350455b21c56843e15d7fbd09156089e66f83c9147e2469f0135ce47f119591053320558fd538ed3dc0f9797c10c27
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'vagrant/util/platform'
|
2
|
+
|
1
3
|
module VagrantPlugins
|
2
4
|
module Foodshow
|
3
5
|
module Action
|
@@ -13,7 +15,9 @@ module VagrantPlugins
|
|
13
15
|
::File.open(pid_file, 'r') do |f|
|
14
16
|
begin
|
15
17
|
pid = f.readline().to_i
|
16
|
-
|
18
|
+
f.close
|
19
|
+
sigterm = Vagrant::Util::Platform.windows? ? 'KILL' : 'TERM'
|
20
|
+
::Process.kill(sigterm, pid)
|
17
21
|
::File.delete(pid_file)
|
18
22
|
rescue Errno::ESRCH
|
19
23
|
::File.delete(pid_file)
|
@@ -2,6 +2,7 @@ require 'json'
|
|
2
2
|
require 'open3'
|
3
3
|
require 'timeout'
|
4
4
|
require 'vagrant-foodshow/util/ngrok_config.rb'
|
5
|
+
require 'vagrant/util/platform'
|
5
6
|
|
6
7
|
module VagrantPlugins
|
7
8
|
module Foodshow
|
@@ -85,7 +86,8 @@ module VagrantPlugins
|
|
85
86
|
unless status == 0
|
86
87
|
begin
|
87
88
|
::File.delete(pid_file)
|
88
|
-
::
|
89
|
+
sigterm = Vagrant::Util::Platform.windows? ? 'KILL' : 'TERM'
|
90
|
+
::Process.kill(sigterm, pid)
|
89
91
|
rescue
|
90
92
|
# ignored
|
91
93
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-foodshow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nikita Borzykh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
65
|
version: '0'
|
66
66
|
requirements: []
|
67
67
|
rubyforge_project: vagrant-foodshow
|
68
|
-
rubygems_version: 2.
|
68
|
+
rubygems_version: 2.2.2
|
69
69
|
signing_key:
|
70
70
|
specification_version: 4
|
71
71
|
summary: You can share your vagrant vm with your colleagues easily by using vagrant-foodshow
|