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: 366d9a432ef47400bf996eb100457e6d9564d872
4
- data.tar.gz: 2baa056556112ec5671495ede167e787b04df2e0
3
+ metadata.gz: b2d307bf3828b1e584e358f072df93a052f0b8bd
4
+ data.tar.gz: 5a5acf66c9ec0bfb13ebb06c7ffd2f6cb0fad1dc
5
5
  SHA512:
6
- metadata.gz: 0c70c7750701cbe445a8208a427a246efbb2be1110f0ae4c7770d19cacf61a40d1d99865d61e8f6b751420bd32e4523f289768b33064f40c0e11a780af37651d
7
- data.tar.gz: 0a6b52cb46b411a8e84e2cd5d4f0682c21a8a16d424aae75fd950948ba0c7eb7bc416feb522b0865ff75735339b591f80e64a327f446800d480be5aae7cd2b07
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
- ::Process.kill('TERM', pid)
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
- ::Process.kill('TERM', pid)
89
+ sigterm = Vagrant::Util::Platform.windows? ? 'KILL' : 'TERM'
90
+ ::Process.kill(sigterm, pid)
89
91
  rescue
90
92
  # ignored
91
93
  end
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module Foodshow
3
- VERSION = '1.1.0'
3
+ VERSION = '1.1.1'
4
4
  end
5
5
  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.0
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: 2015-09-27 00:00:00.000000000 Z
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.4.4
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