vagrant-dnsdock-hostupdater 0.0.18 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/host-manager.rb +3 -3
  3. data/lib/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d619a1532a258271610eb6c923db4762cdb5b0f4
4
- data.tar.gz: 0f913f24367a224fde66fde4478c6411fcb2e1f6
3
+ metadata.gz: 96e030077850a9c166f27c149e231dd040bc962d
4
+ data.tar.gz: 10abd9d4cf24360eff0a2b8c99c6038dbab12248
5
5
  SHA512:
6
- metadata.gz: 4a488dffa9094e58b382595b04fe43611d89e3c2a946543102f386dc4632b9b5d799fdc3b5a06ef99c30f9014366611aa77f96bbbeb80d2dc19f9e7d6b5679d0
7
- data.tar.gz: 88e32e906e218ed7099992f3456110956234223ccd234bd30bdeecca59a641040315e6ce1cba453b12723bbe0c10115389a1bd392d59a99235dd2705c2cf432e
6
+ metadata.gz: 5a4cabaf9a3359a61fd7001596fc98a62c5f2e4f5db30cdc2b48462ff9df22a3241d70e369101b0cb5313b9d494b78722c10a39d5b4a30a31d41e4bf1534c9ce
7
+ data.tar.gz: 02f58064a29de72e5c9c7995637a5658dcc4fa9f182a2b3657bdcd5f0dd2a4a6ced73f301fba66ea98df607ee84b723bf9d267f7f1b9c025f2ca9a607f27eb83
data/lib/host-manager.rb CHANGED
@@ -149,9 +149,9 @@ module HostManager
149
149
  end
150
150
 
151
151
  def add_entry(entry, hosts)
152
- if entry[:ip] && entry[:containerId] && entry[:hostname]
153
- comment = HostManager.comment_prefix + (entry[:containerId] ? " Container ID: #{entry[:containerId]}" : '')
154
- hosts.elements << Hosts::Entry.new(entry[:ip], entry[:hostname], :comment => comment)
152
+ if entry['ip'] && entry['containerId'] && entry['hostname']
153
+ comment = HostManager.comment_prefix + (entry['containerId'] ? " Container ID: #{entry['containerId']}" : '')
154
+ hosts.elements << Hosts::Entry.new(entry['ip'], entry['hostname'], :comment => comment)
155
155
 
156
156
  else
157
157
  log.warn 'Unable to write entry due to missing values [ip,containerId,hostname]: ' + entry.to_json
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module DnsdockHostUpdater
3
- VERSION = '0.0.18'.freeze
3
+ VERSION = '0.0.19'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-dnsdock-hostupdater
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Coit