vagrant-goodhosts 1.1.5 → 1.1.7

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: f01c22f92849382e5c320c60266b1c5f4cafe4f22f4dfa1675354d15244a4566
4
- data.tar.gz: 5519bd1c50e50739e42f096be5744901e023e0dd3ef4b3d2bef6f70ea3212094
3
+ metadata.gz: 11b15f6a61eabd376e377893f51af05f0d0541b6bb3d51b7b67b86bc52ccad74
4
+ data.tar.gz: 5cd6d720a97f94cccfa9ee3f36c7ab8a1d8cdeba3a8d8940f37097cf51ae6a68
5
5
  SHA512:
6
- metadata.gz: e5f38bb5c477970b055e595466e507b9f990ab8bfe355421f162e203edefba8b8c90ae05da25baa78a3b31f8018f73e58c325d11117eba5d3ae68fce14759fb9
7
- data.tar.gz: 698212cce5999610ed8e20e8fb90bfb65a44f65132b6f493a176d77109da20346780db40faf8da470b9a19c870bc3647ec98011baf5e5026a2b102a0fa5de9d1
6
+ metadata.gz: 79a5fa927822987c6b710baa941d20dccb61854099f83d0c7168f891355e439c04a85fd385984644bd3ca57b0e6f02378ce00a03ea1d7ac5bfa6d20ca6d6a4d7
7
+ data.tar.gz: 5f9ab9f0e54a82e05516890f81ebd0042fb67a09322bb8528d4f2d6483b56fc05582814fc2bf5a61616668d9488c68b1e59c2411802f9d5366e2824390a3812a
@@ -3,7 +3,7 @@ name: Linters
3
3
  on: [push]
4
4
 
5
5
  jobs:
6
- build:
6
+ linter:
7
7
  runs-on: ubuntu-latest
8
8
  steps:
9
9
  - uses: actions/checkout@v1
data/.rubocop.yml CHANGED
@@ -19,6 +19,8 @@ Metrics/CyclomaticComplexity:
19
19
  Enabled: false
20
20
  Metrics/AbcSize:
21
21
  Enabled: false
22
+ Style/AndOr:
23
+ Enabled: false
22
24
  Style/FrozenStringLiteralComment:
23
25
  Enabled: false
24
26
  Style/RaiseArgs:
data/README.md CHANGED
@@ -97,7 +97,8 @@ This enable `vagrant-goodhosts` from running the clean command in every call.
97
97
 
98
98
  ## Suppressing prompts for elevating privileges
99
99
 
100
- These prompts exist to prevent anything that is being run by the user from inadvertently updating the hosts file.
100
+ These prompts exist to prevent anything that is being run by the user from inadvertently updating the hosts file.
101
+ The command path is printed in red when there are errors with Vagrant eg. if the sudo password is entered incorrectly for 3 times.
101
102
  If you understand the risks that go with supressing them, here's how to do it.
102
103
 
103
104
  ### Linux/OS X: Passwordless sudo
@@ -109,6 +110,10 @@ For Ubuntu and most Linux environments:
109
110
 
110
111
  %sudo ALL=(root) NOPASSWD: [the-command-path]
111
112
 
113
+ An example complete:
114
+
115
+ %sudo ALL=(root) NOPASSWD: /home/user/sites/vvv/.vagrant/plugins/gems/3.1.2/gems/vagrant-goodhosts-1.1.6/lib/vagrant-goodhosts/bundle/cli_amd64_linux
116
+
112
117
  For MacOS:
113
118
 
114
119
  %admin ALL=(root) NOPASSWD: [the-command-path]
@@ -10,6 +10,14 @@ module VagrantPlugins
10
10
  module GoodHosts
11
11
  def get_ips
12
12
  ips = []
13
+ if @machine.provider_name == :docker
14
+ @ui.info '[vagrant-goodhosts] Docker detected, adding 127.0.0.1 and ::1 IP addresses'
15
+ ip = "127.0.0.1"
16
+ ips.push(ip) unless ip.nil? or ips.include? ip
17
+ ip = "::1"
18
+ ips.push(ip) unless ip.nil? or ips.include? ip
19
+ return ips
20
+ end
13
21
  @machine.config.vm.networks.each do |network|
14
22
  key, options = network[0], network[1]
15
23
  if options[:goodhosts] == "skip"
Binary file
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module GoodHosts
3
- VERSION = '1.1.5'
3
+ VERSION = '1.1.7'
4
4
  end
5
5
  end
data/package.sh CHANGED
@@ -5,11 +5,11 @@ cd ./lib/vagrant-goodhosts/bundle
5
5
  # Download
6
6
  curl -s https://api.github.com/repos/goodhosts/cli/releases/latest | jq --raw-output '.assets[] | .browser_download_url' | xargs wget -i
7
7
  # Extract
8
- tar -zxvf goodhosts-1.1.0-darwin-amd64.tar.gz goodhosts && mv goodhosts cli_amd64_osx
9
- tar -zxvf goodhosts-1.1.0-darwin-arm64.tar.gz goodhosts && mv goodhosts cli_arm64_osx
10
- tar -zxvf goodhosts-1.1.0-linux-amd64.tar.gz goodhosts && mv goodhosts cli_amd64_linux
11
- tar -zxvf goodhosts-1.1.0-linux-arm64.tar.gz goodhosts && mv goodhosts cli_arm64_linux
12
- tar -zxvf goodhosts-1.1.0-windows-amd64.tar.gz goodhosts.exe && mv goodhosts.exe cli.exe
8
+ tar -zxvf goodhosts-1.1.2-darwin-amd64.tar.gz goodhosts && mv goodhosts cli_amd64_osx
9
+ tar -zxvf goodhosts-1.1.2-darwin-arm64.tar.gz goodhosts && mv goodhosts cli_arm64_osx
10
+ tar -zxvf goodhosts-1.1.2-linux-amd64.tar.gz goodhosts && mv goodhosts cli_amd64_linux
11
+ tar -zxvf goodhosts-1.1.2-linux-arm64.tar.gz goodhosts && mv goodhosts cli_arm64_linux
12
+ tar -zxvf goodhosts-1.1.2-windows-amd64.tar.gz goodhosts.exe && mv goodhosts.exe cli.exe
13
13
  rm -f ./*.tar.gz
14
14
  rm -f ./*.txt
15
15
  # Generate
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.1.5
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniele Scasciafratte
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-05 00:00:00.000000000 Z
11
+ date: 2024-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
102
  requirements: []
103
- rubygems_version: 3.3.15
103
+ rubygems_version: 3.4.20
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: Enables Vagrant to update hosts file on the host machine with goodhosts