vagrant-goodhosts 1.1.1 → 1.1.2

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: 913057d147ca19a4c9b051dbc06ec58e054ed045b5e46d964cd305db0ead2651
4
- data.tar.gz: 601e5e9e7c0bfba28f6504aa9ee6947c6c83aca51d3e86c4e5b4c623ef650779
3
+ metadata.gz: d9d571c66bee739daa440ff14420530877b8de9a54772960000c322a621a6dfc
4
+ data.tar.gz: 1da6af09b2600518c6bc98b46dfd788429408fd43cd22b652cedf699931eca5f
5
5
  SHA512:
6
- metadata.gz: '0816afef7b1974b05fb643e58ad4d035ca051bb1447a4e61a6b25e7b5b5863a8756854dacbf10986b6d68d3220f1d476f8d6a180049d6fcec0e3c8901df85a62'
7
- data.tar.gz: 347e634628dc20e3190e74aa2350abaa309677440b76fdb6dc7b6825212172183ad73b0f8d1c65a06cd29454304ccd0536fc65b4018088eac5439c719c0b6a59
6
+ metadata.gz: f6d3f083e720d58cadeab5a822bbe3eebfcc25adbe1e7bc695b6ad7bb81762d6a2dfe5851ab37580dfcde0bd194d07b78043d5abaa40e64d273d95fc0775b293
7
+ data.tar.gz: 2094f799367acc58696189954d1691564c7feb3d677fed5edca8ac760e34e819a0dd1313309eb90636b17117ef69c8b05e0195e4bb62c71486ce16cb27c2dc3e
data/README.md CHANGED
@@ -24,6 +24,13 @@ To update the plugin:
24
24
  vagrant plugin update vagrant-goodhosts
25
25
  ```
26
26
 
27
+ ### Installation from Gem file
28
+
29
+ The gem file is released with every [release](https://github.com/goodhosts/vagrant/releases) and you can install it with vagrant as it is a plugin after all.
30
+ Affter downloading the file run this command to install manually:
31
+
32
+ `vagrant plugin install vagrant-goodhosts-*.gem`
33
+
27
34
  ## Usage
28
35
 
29
36
  You currently only need the `hostname` and a `:private_network` network with a fixed IP address.
@@ -115,7 +122,7 @@ You have to open an elevated command prompt; hold `❖ Win` and press `X`, then
115
122
 
116
123
  cacls %SYSTEMROOT%\system32\drivers\etc\hosts /E /G %USERNAME%:W
117
124
 
118
- ## Installing The Development Version
125
+ ## Generate The Development Version
119
126
 
120
127
  If you would like to install `vagrant-goodhosts` to make contributions or changes, run the following commands::
121
128
 
@@ -125,3 +132,7 @@ cd vagrant-goodhosts
125
132
  ./package.sh
126
133
  vagrant plugin install vagrant-goodhosts-*.gem
127
134
  ```
135
+
136
+ ## Test the plugin
137
+
138
+ You need to run a Vagrant machine with the minimum settings specified in the [Usage](https://github.com/goodhosts/vagrant#usage) section, it is enough a turn on and off and in the meantime if the hosts file in your machine is written in the right way.
@@ -48,7 +48,12 @@ module VagrantPlugins
48
48
  if OS.windows?
49
49
  return 'cli.exe'
50
50
  elsif OS.mac?
51
- return 'cli_osx'
51
+ type = system('uname -m')
52
+ if type == 'x86_64'
53
+ return 'cli_amd64_osx'
54
+ else
55
+ return 'cli_arm64_osx'
56
+ end
52
57
  elsif OS.linux?
53
58
  return 'cli'
54
59
  else
@@ -203,6 +208,7 @@ module VagrantPlugins
203
208
 
204
209
  def print_readme(error, error_text, command)
205
210
  unless error
211
+ @ui.info "[vagrant-goodhosts] Finished processing"
206
212
  return false
207
213
  end
208
214
 
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module GoodHosts
3
- VERSION = '1.1.1'
3
+ VERSION = '1.1.2'
4
4
  end
5
5
  end
data/package.sh CHANGED
@@ -5,9 +5,10 @@ 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_darwin_amd64.tar.gz goodhosts && mv goodhosts cli_osx
9
- tar -zxvf goodhosts_linux_amd64.tar.gz goodhosts && mv goodhosts cli
10
- tar -zxvf goodhosts_windows_amd64.tar.gz goodhosts.exe && mv goodhosts.exe cli.exe
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
11
+ tar -zxvf goodhosts-1.1.0-windows-amd64.tar.gz goodhosts.exe && mv goodhosts.exe cli.exe
11
12
  rm -f ./*.tar.gz
12
13
  rm -f ./*.txt
13
14
  # Generate
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
21
21
  s.require_paths = ['lib']
22
22
 
23
- s.add_development_dependency 'bundler', '~> 1.3'
23
+ s.add_development_dependency 'bundler', '>= 2.2.10'
24
24
  s.add_development_dependency 'rake'
25
25
 
26
26
  s.add_runtime_dependency "os"
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-goodhosts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniele Scasciafratte
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-04 00:00:00.000000000 Z
11
+ date: 2021-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.3'
19
+ version: 2.2.10
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.3'
26
+ version: 2.2.10
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -73,7 +73,8 @@ files:
73
73
  - lib/vagrant-goodhosts/GoodHosts.rb
74
74
  - lib/vagrant-goodhosts/bundle/cli
75
75
  - lib/vagrant-goodhosts/bundle/cli.exe
76
- - lib/vagrant-goodhosts/bundle/cli_osx
76
+ - lib/vagrant-goodhosts/bundle/cli_amd64_osx
77
+ - lib/vagrant-goodhosts/bundle/cli_arm64_osx
77
78
  - lib/vagrant-goodhosts/config.rb
78
79
  - lib/vagrant-goodhosts/plugin.rb
79
80
  - lib/vagrant-goodhosts/version.rb
Binary file