vagrant-hostsupdater 1.2.2 → 1.2.3

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: 28da9dcc8ae93032fce5f1005a560e515d04c52dd7fbd8b59a4fe02a5dc28d9f
4
- data.tar.gz: 9b52816b56418ef87eeb9d4570832af2b21f4a54e1ff3fff8410f58cf79cb42a
3
+ metadata.gz: 0371cf411522954cf291b4e87ed341c14d6b8cb21cc94f4cc03986adc5ad803a
4
+ data.tar.gz: 5af3574a4307a52e64754b8c9b370be54f7336ad7b31154cdcb88f07987b1b31
5
5
  SHA512:
6
- metadata.gz: 017dd22e81cec47f73a0af31ecfa58489fd8bc89c57b722d97ef4c381a5fd8d04365138268f5466bda9a486f7fad075071eb1b0ecc484dea7842a26e74dccbe3
7
- data.tar.gz: 0f6b2d84f9c791d35e930ac6b75472a0fc38272b88bccfaa9c8b60df2476dcd1c3dd7d9a16b9bed0a9108b960dc077798216fb63c35e0dbaab233a4aa6df6554
6
+ metadata.gz: 178761d6c30e2c1f24d904583deea679b55d0761b17e2a3f59545e7982289faf51290cc167795758868cda17302eacf76452eecb61766072710f90c3d276ad4c
7
+ data.tar.gz: f86f197b4c899f45d9de3b20abf6d2d03d01c62d30e9b5c0c961664434f5dfacd9bf468cfab96fa9a044395b763a7f452e2b6cbb922ef507916c887037e6efc6
@@ -21,9 +21,14 @@ module VagrantPlugins
21
21
  end
22
22
 
23
23
  def call(env)
24
- if not @@completed.key?(self.class.name)
24
+ # Check whether the plugin has been executed for a particular
25
+ # VM as it may happen that a single Vagrantfile defines multiple
26
+ # machines and having a static flag will result in a plugin being
27
+ # executed just once.
28
+ # https://github.com/agiledivider/vagrant-hostsupdater/issues/198
29
+ if not @@completed.key?(@machine.name)
25
30
  run(env)
26
- @@completed[self.class.name] = true
31
+ @@completed[@machine.name] = true
27
32
  end
28
33
 
29
34
  @app.call(env)
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module HostsUpdater
3
- VERSION = '1.2.2'
3
+ VERSION = '1.2.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-hostsupdater
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Falk Kühnel
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-04-02 00:00:00.000000000 Z
12
+ date: 2021-04-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler