consul-templaterb 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/CHANGELOG.md +10 -0
- data/README.md +2 -2
- data/bin/consul-templaterb +1 -1
- data/lib/consul/async/consul_endpoint.rb +1 -1
- data/lib/consul/async/consul_template_render.rb +1 -0
- data/lib/consul/async/version.rb +1 -1
- data/samples/checks.html.erb +1 -2
- data/samples/common/header.html.erb +1 -2
- data/samples/criteo_choregraphies.html.erb +1 -2
- data/samples/services.html.erb +2 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dff2b22aa59dd10c76e17b02ad83bc2d3f5d0b6e2e2502ad94c2436c9c93f074
|
4
|
+
data.tar.gz: f41245cc9d75fd2c326fa573643e6dee67eb2e9743c9862da2710e41114fba3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a2cc201720dd43f08ac085e7df34bafaa63379a3eabd801e188f587a2ff5448ec2c657e7984c47dddc516a0fc6d8ce61c5ab4cb426ff76101e671f0c523855e
|
7
|
+
data.tar.gz: 7dea5e8d25aade2cfb621faa461f496183dcdfa77a8b3862fd2e030d042c05722692517bdaf8de382566946948eaa6aaeb3b91596c7bda08c1ef17690cc1f8dc
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
## (UNRELEASED)
|
2
2
|
|
3
|
+
## 1.0.7 (March 16, 2018)
|
4
|
+
|
5
|
+
BUG FIXES:
|
6
|
+
|
7
|
+
* Do not execute reload command at startup if destination file exists and is unchanged
|
8
|
+
|
9
|
+
IMPROVEMENTS:
|
10
|
+
|
11
|
+
* samples/*.html.erb files have doctype as first line
|
12
|
+
|
3
13
|
## 1.0.6 (March 16, 2018)
|
4
14
|
|
5
15
|
IMPROVEMENTS:
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Consul::Templaterb
|
1
|
+
# Consul::Templaterb [![Build Status](https://api.travis-ci.org/criteo/consul-templaterb.svg?branch=master)](https://travis-ci.org/criteo/consul-templaterb)
|
2
2
|
|
3
3
|
This GEM is both a library and an executable that allows to generate files
|
4
4
|
using data from Consul (Discovery and Key/Value Store) easily using ruby's
|
@@ -117,7 +117,7 @@ $ consul-templaterb --help
|
|
117
117
|
USAGE: bin/consul-templaterb [[options]]
|
118
118
|
-h, --help Show help
|
119
119
|
-v, --version Show Version
|
120
|
-
-c, --consul-addr=<address> Address of Consul, eg: http://
|
120
|
+
-c, --consul-addr=<address> Address of Consul, eg: http://localhost:8500
|
121
121
|
--consul-token=<token> Use a token to connect to Consul
|
122
122
|
-w, --wait=<min_duration> Wait at least n seconds before each template generation
|
123
123
|
-r, --retry-delay=<min_duration> Min Retry delay on Error/Missing Consul Index
|
data/bin/consul-templaterb
CHANGED
@@ -67,7 +67,7 @@ optparse = OptionParser.new do |opts|
|
|
67
67
|
exit 0
|
68
68
|
end
|
69
69
|
|
70
|
-
opts.on('-c', '--consul-addr=<address>', String, 'Address of Consul, eg: http://
|
70
|
+
opts.on('-c', '--consul-addr=<address>', String, 'Address of Consul, eg: http://localhost:8500') do |consul_url|
|
71
71
|
options[:consul][:base_url] = consul_url
|
72
72
|
end
|
73
73
|
|
@@ -7,7 +7,7 @@ module Consul
|
|
7
7
|
class ConsulConfiguration
|
8
8
|
attr_reader :base_url, :token, :retry_duration, :min_duration, :wait_duration, :max_retry_duration, :retry_on_non_diff,
|
9
9
|
:missing_index_retry_time_on_diff, :missing_index_retry_time_on_unchanged, :debug
|
10
|
-
def initialize(base_url: 'http://
|
10
|
+
def initialize(base_url: 'http://localhost:8500',
|
11
11
|
debug: { network: false },
|
12
12
|
token: nil,
|
13
13
|
retry_duration: 10,
|
data/lib/consul/async/version.rb
CHANGED
data/samples/checks.html.erb
CHANGED
@@ -6,8 +6,7 @@
|
|
6
6
|
tools = (ENV['CONSUL_TOOLS'] || 'criteo_choregraphies,checks,services,nodes,keys').split(",")
|
7
7
|
suffix = ENV['CONSUL_TOOLS_PREFIX'] || '.html'
|
8
8
|
prefix = ENV['CONSUL_TOOLS_SUFFIX'] || ''
|
9
|
-
|
10
|
-
<!DOCTYPE html>
|
9
|
+
%><!DOCTYPE html>
|
11
10
|
<html lang="en">
|
12
11
|
<head>
|
13
12
|
<meta charset="utf-8">
|
data/samples/services.html.erb
CHANGED
@@ -14,8 +14,7 @@
|
|
14
14
|
'info'
|
15
15
|
end
|
16
16
|
end
|
17
|
-
%>
|
18
|
-
<%= render_file 'common/header.html.erb' %>
|
17
|
+
%><%= render_file 'common/header.html.erb' %>
|
19
18
|
<% require 'base64'
|
20
19
|
require 'json'
|
21
20
|
require 'date'
|
@@ -69,4 +68,4 @@
|
|
69
68
|
<% end%>
|
70
69
|
</ul>
|
71
70
|
<% end%>
|
72
|
-
<%= render_file 'common/footer.html.erb' %>
|
71
|
+
<%= render_file 'common/footer.html.erb' %>
|