vagrant-goodhosts 1.0.4 → 1.0.6
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77a1b25e87a6f494d365411f2094bf55b3bb44d52a760aea2cccf81147f326f2
|
4
|
+
data.tar.gz: a8212f3941c4fd3e55ddc6ce50c1d0a92fb892bf94f2be58f71b89d817c1f972
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2d1047db323f73cf93dd19c96f19df9ca4f0226151dab857f0a4e73d87a828cd1edc984cf76adc2ab4115ffc9844801679fe0517b674db88052354421a286e6
|
7
|
+
data.tar.gz: 17ff9509b9b35ea2adfc423754f549c9edffc15809e3cdc74e24f780bb9976d43d4428a2a1dff9dbc3f6a59ad333e8b84ab9cec2057493dfa6796fd198f6ccc7
|
@@ -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
|
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
|
+
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-
|
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.
|
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
|