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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/bin/aggwrap +8 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7716b6b32f14c67344fdd5f41cd0a6cc9c3a959f25cbe5e490b5596fe084f1fc
4
- data.tar.gz: 3e19b6b3f240ad9d091cb99fa7e11f425f6e0c067302dfafb0ff17d4d92a3c42
3
+ metadata.gz: 945b31d8dad7d41cdcd3544e1b4095e81c0a20e1471754308595146e1f113dab
4
+ data.tar.gz: bd53c6fa5385c06a7f4eaab6a301c7fbe501c9f0997a462bbbdaf519c0442ece
5
5
  SHA512:
6
- metadata.gz: 988a96f6d4291ef3f6ba4478de1c88dc8b8637a8977a4148870c2e75a46f1086dcb2e7c55a677b4db86dcac4cbf2b62d92a1659387d603baa138418969f58a90
7
- data.tar.gz: 84b7d46ba2e3bc32b755320e32001311d56433d0d21d39966510000fa59de1ced58cb86ccd033e85d531bdea9bfb095032bc5ccd8c9a66f1af7e1a514f776e5d
6
+ metadata.gz: 1d90b5577cf8b3d26e049d0b2eab99476709275de14818eced1217d66d7c66b3350b5fb2459ef938afc7d3be71a516a2490bd46fd6396f13a334bb153a2b099d
7
+ data.tar.gz: 07cf19cc50aa45c3fcafd1c36cab7966990c87e1adc40db6ca27213204c36e468beb7f40131cc7aaa4c77db5a2a39220576fe81bd30be551fae8e42ea880448e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aggkit (0.4.8.19633)
4
+ aggkit (0.4.8.19803)
5
5
  diplomat
6
6
  dotenv
7
7
  json
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: ENV['AGGREDATOR_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.19633
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-25 00:00:00.000000000 Z
12
+ date: 2019-11-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: diplomat