vagrant-goodhosts 1.0.4 → 1.0.6

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
  SHA256:
3
- metadata.gz: 7d08aeb238e55a6b9c10399ed2bb6cdf227e223bbde08e4a6dfb11366e67e5ee
4
- data.tar.gz: 59169325206bd3f62a0b040d259fe14dc42dd3fa310822e5bccd4fc04beb15c0
3
+ metadata.gz: 77a1b25e87a6f494d365411f2094bf55b3bb44d52a760aea2cccf81147f326f2
4
+ data.tar.gz: a8212f3941c4fd3e55ddc6ce50c1d0a92fb892bf94f2be58f71b89d817c1f972
5
5
  SHA512:
6
- metadata.gz: 4be9ec9e1d21b768de7c7a711f49daebec9606d28bdaf0a897f6deacb45faa76c1c6aec786a1701f119b5e6f4a4152a39315b58bfef77e9fd6dfa14744656519
7
- data.tar.gz: 2a3e60b74d59745cea020b37dbd946ab0a1a14cbd77041727b20c0f55d9879871704512540578cbe8a247a86d55608c72692b016b061438569d231d4606e14b8
6
+ metadata.gz: c2d1047db323f73cf93dd19c96f19df9ca4f0226151dab857f0a4e73d87a828cd1edc984cf76adc2ab4115ffc9844801679fe0517b674db88052354421a286e6
7
+ data.tar.gz: 17ff9509b9b35ea2adfc423754f549c9edffc15809e3cdc74e24f780bb9976d43d4428a2a1dff9dbc3f6a59ad333e8b84ab9cec2057493dfa6796fd198f6ccc7
@@ -5,7 +5,6 @@ module VagrantPlugins
5
5
  class UpdateHosts
6
6
  include GoodHosts
7
7
 
8
-
9
8
  def initialize(app, env)
10
9
  @app = app
11
10
  @machine = env[:machine]
@@ -81,15 +81,6 @@ module VagrantPlugins
81
81
  end
82
82
  end
83
83
 
84
- # handle default hostname(s) if not already specified in the aliases
85
- Array(@machine.config.vm.hostname).each do |host|
86
- if hostnames.none? { |k, v| v.include?(host) }
87
- ips.each do |ip|
88
- hostnames[ip].unshift host
89
- end
90
- end
91
- end
92
-
93
84
  return hostnames
94
85
  end
95
86
 
@@ -104,9 +95,9 @@ module VagrantPlugins
104
95
  next
105
96
  end
106
97
  if cli.include? ".exe"
107
- stdin, stdout, stderr, wait_thr = Open3.popen3(cli, "add", ip_address, hostnames)
98
+ stdin, stdout, stderr, wait_thr = Open3.popen3(cli, "add", "cl", ip_address, hostnames)
108
99
  else
109
- stdin, stdout, stderr, wait_thr = Open3.popen3("sudo", cli, "add", ip_address, hostnames)
100
+ stdin, stdout, stderr, wait_thr = Open3.popen3("sudo", cli, "add", "cl", ip_address, hostnames)
110
101
  end
111
102
  if !wait_thr.value.success?
112
103
  error = true
@@ -127,9 +118,9 @@ module VagrantPlugins
127
118
  next
128
119
  end
129
120
  if cli.include? ".exe"
130
- stdin, stdout, stderr, wait_thr = Open3.popen3(cli, "remove", ip_address, hostnames)
121
+ stdin, stdout, stderr, wait_thr = Open3.popen3(cli, "remove", "cl", ip_address, hostnames)
131
122
  else
132
- stdin, stdout, stderr, wait_thr = Open3.popen3("sudo", cli, "remove", ip_address, hostnames)
123
+ stdin, stdout, stderr, wait_thr = Open3.popen3("sudo", cli, "remove", "cl", ip_address, hostnames)
133
124
  end
134
125
  if !wait_thr.value.success?
135
126
  error = true
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module GoodHosts
3
- VERSION = '1.0.4'
3
+ VERSION = '1.0.6'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-goodhosts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniele Scasciafratte
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-12 00:00:00.000000000 Z
11
+ date: 2020-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  requirements: []
84
- rubygems_version: 3.1.2
84
+ rubygems_version: 3.1.4
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: Enables Vagrant to update hosts file on the host machine with goodhosts