consul_syncer 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/consul_syncer.rb +2 -2
- data/lib/consul_syncer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b82012df7829baf83f7b6ffdd76da1d245553ec8
|
4
|
+
data.tar.gz: cf468bb76268d2ce375d401319c5f3f8eb5dce49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56ff897ebfaa16ab68a5a04e59b7babdc227de3a1b2fd1355ebd44321cc5ba222c7e930f345d5fbc91a4487c29a9b94b2a1f053704e0e3a6e4500dda62726174
|
7
|
+
data.tar.gz: 0f3a1a898a39f51ec8f2944b79ba756027662fb503a9cd218ed4b162e20d272cb65e22c7b5e2b76ed115b5766d26ae90d6a56f2c6be7de32651902f3e3d6a7dd
|
data/lib/consul_syncer.rb
CHANGED
@@ -47,7 +47,7 @@ class ConsulSyncer
|
|
47
47
|
description = "#{expected.fetch(:service)} / #{expected.fetch(:service_id)} on #{expected.fetch(:node)} in Consul"
|
48
48
|
|
49
49
|
if remove_matching_service!(actual_definitions, expected, interesting)
|
50
|
-
@logger.
|
50
|
+
@logger.debug "Found #{description}"
|
51
51
|
elsif remove_matching_service!(actual_definitions, expected, identifying)
|
52
52
|
@logger.info "Updating #{description}"
|
53
53
|
modified += 1
|
@@ -77,7 +77,7 @@ class ConsulSyncer
|
|
77
77
|
# cannot query for multiple tags via query, so handle multi-matching manually
|
78
78
|
next if (requested_tags - tags).any?
|
79
79
|
|
80
|
-
@logger.
|
80
|
+
@logger.debug "Getting service endpoints for #{name}"
|
81
81
|
# this also finds the 'external services' we define since they have no checks
|
82
82
|
endpoints = @consul.request(:get, "/v1/health/service/#{name}")
|
83
83
|
endpoints.each do |endpoint|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: consul_syncer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|