consul-templaterb 1.17.1 → 1.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/CHANGELOG.md +6 -0
- data/bin/consul-templaterb +5 -2
- data/lib/consul/async/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 58399d2cd0c1496b4dd393143b8b2a8ee814832dad29774ba6d88e3a18419cbe
|
|
4
|
+
data.tar.gz: b3fcb67cc5e85ea881d6b034e130855bf75315eadd6face8fff7eed758a7ad69
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8eeadbe82f3eb678549db7fad7509671cff98b64a375096f2a077c43d6d1d2c5c82e81eade713b27e73aa2667dd65980097ab4e985c2777f5e595a9bc9f0e865
|
|
7
|
+
data.tar.gz: b2f690e43b8c2aca8d5c0dd1bd2a921374c21a6e661e55b21598861ec99403fc694f110f66d7a6cd58cf572a7440e0893a683a8d8ccf81fe45a4aca205ee1ac8
|
data/CHANGELOG.md
CHANGED
data/bin/consul-templaterb
CHANGED
|
@@ -75,6 +75,7 @@ options = {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
+
my_pid = Process.pid
|
|
78
79
|
consul_engine = Consul::Async::ConsulTemplateEngine.new
|
|
79
80
|
@programs = {}
|
|
80
81
|
cur_sig_reload = 'HUP'.freeze
|
|
@@ -301,9 +302,11 @@ Signal.trap('USR1', 'IGNORE') unless Gem.win_platform?
|
|
|
301
302
|
# Ensure to kill child process if any
|
|
302
303
|
['EXIT'].each do |sig|
|
|
303
304
|
Signal.trap(sig) do |signo|
|
|
304
|
-
|
|
305
|
+
# handle nicely forks
|
|
306
|
+
m_p = my_pid == Process.pid
|
|
307
|
+
STDERR.puts "[KILL] received #{Signal.signame(signo)}, stopping myself" if m_p
|
|
305
308
|
template_manager.terminate
|
|
306
|
-
kill_program
|
|
309
|
+
kill_program if m_p
|
|
307
310
|
end
|
|
308
311
|
end
|
|
309
312
|
|
data/lib/consul/async/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: consul-templaterb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.17.
|
|
4
|
+
version: 1.17.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SRE Core Services
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-07-
|
|
11
|
+
date: 2019-07-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: em-http-request
|
|
@@ -242,8 +242,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
242
242
|
- !ruby/object:Gem::Version
|
|
243
243
|
version: '0'
|
|
244
244
|
requirements: []
|
|
245
|
-
|
|
246
|
-
rubygems_version: 2.6.14.4
|
|
245
|
+
rubygems_version: 3.0.4
|
|
247
246
|
signing_key:
|
|
248
247
|
specification_version: 4
|
|
249
248
|
summary: Implementation of Consul template using Ruby and .erb templating language
|