aggkit 0.4.8.19633 → 0.4.8.19803
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/bin/aggwrap +8 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 945b31d8dad7d41cdcd3544e1b4095e81c0a20e1471754308595146e1f113dab
|
4
|
+
data.tar.gz: bd53c6fa5385c06a7f4eaab6a301c7fbe501c9f0997a462bbbdaf519c0442ece
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d90b5577cf8b3d26e049d0b2eab99476709275de14818eced1217d66d7c66b3350b5fb2459ef938afc7d3be71a516a2490bd46fd6396f13a334bb153a2b099d
|
7
|
+
data.tar.gz: 07cf19cc50aa45c3fcafd1c36cab7966990c87e1adc40db6ca27213204c36e468beb7f40131cc7aaa4c77db5a2a39220576fe81bd30be551fae8e42ea880448e
|
data/Gemfile.lock
CHANGED
data/bin/aggwrap
CHANGED
@@ -17,8 +17,14 @@ include Aggkit::Runner
|
|
17
17
|
|
18
18
|
consul_addr = Aggkit::Consul.build_consul_addr(addr: ENV['CONSUL_HTTP_ADDR'], host: ENV['CONSUL_HOST'], port: ENV['CONSUL_PORT'])
|
19
19
|
|
20
|
+
service = if ENV['AGGREDATOR_COMPONENT'].empty?
|
21
|
+
ENV['AGGREDATOR_SERVICE']
|
22
|
+
else
|
23
|
+
"#{ENV['AGGREDATOR_SERVICE']}-#{ENV['AGGREDATOR_COMPONENT']}"
|
24
|
+
end
|
25
|
+
|
20
26
|
@opts = {
|
21
|
-
service:
|
27
|
+
service: service,
|
22
28
|
id: Socket.gethostname,
|
23
29
|
reload_interval: DEFAULT_RELOAD_INTERVAL,
|
24
30
|
tags: []
|
@@ -38,7 +44,7 @@ end
|
|
38
44
|
parser = Aggkit::OptionParser.new do |o|
|
39
45
|
o.banner = "Usage: #{UTIL} [options] -- exec script"
|
40
46
|
|
41
|
-
o.on('--service <NAME>', 'Set service NAME. AGGREDATOR_SERVICE env used when missed') do |service|
|
47
|
+
o.on('--service <NAME>', 'Set service NAME. $AGGREDATOR_SERVICE-$AGGREDATOR_COMPONENT env used when missed') do |service|
|
42
48
|
@opts[:service] = service.to_s
|
43
49
|
end
|
44
50
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aggkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.8.
|
4
|
+
version: 0.4.8.19803
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Godko Ivan
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-11-
|
12
|
+
date: 2019-11-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: diplomat
|