imperium 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -1
- data/Dockerfile.ci +2 -2
- data/lib/imperium/service_check.rb +10 -1
- data/lib/imperium/version.rb +1 -1
- 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: 735d0bb0fff178679598fdfa787512ebf9a89f33e12fe92d2c921a2f42310380
|
4
|
+
data.tar.gz: a602b6416cf401f9eeb5393cc5257e6438f0aae2f1379e614b9136dec41a02ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e46827680a42afeba56496441e1b33a52533879ddc8f9e337a71ff1151b28b108dc874c0c35d501df114e0d087360d2ee3f535369b59d61e1b729d814b012ab6
|
7
|
+
data.tar.gz: e6d1ee7687dd56dff31a5e628d78d40716c6b1dd39cb03cfcb7cc5631a77ed94d32d8562768baa495f3232c5b42e3e98e0798a84f7ea8025500228c1ccf508ef
|
data/.travis.yml
CHANGED
data/Dockerfile.ci
CHANGED
@@ -9,11 +9,11 @@ USER root
|
|
9
9
|
RUN chown -R docker:docker /app
|
10
10
|
USER docker
|
11
11
|
|
12
|
-
RUN /bin/bash -l -c "cd /app && bundle install"
|
12
|
+
RUN /bin/bash -l -c "cd /app && rvm-exec 2.5 bundle install"
|
13
13
|
COPY . /app
|
14
14
|
|
15
15
|
USER root
|
16
16
|
RUN chown -R docker:docker /app
|
17
17
|
USER docker
|
18
18
|
|
19
|
-
CMD /bin/bash -l -c "bundle exec wwtd"
|
19
|
+
CMD /bin/bash -l -c "rvm-exec 2.5 bundle exec wwtd"
|
@@ -11,10 +11,18 @@ module Imperium
|
|
11
11
|
# @!attribute [rw] name
|
12
12
|
# @return [String] The check's name in the consul UI, required for
|
13
13
|
# creation, not required to be unique.
|
14
|
-
# @!attribute [rw] script
|
14
|
+
# @!attribute [rw] script (deprecated since consul 1.0)
|
15
15
|
# @return [String] Specifies a script or path to a script to run on Interval
|
16
16
|
# to update the status of the check. If specifying a path, this path must
|
17
17
|
# exist on disk and be readable by the Consul agent.
|
18
|
+
# @!attribute [rw] args
|
19
|
+
# @return [Array<String>] Specifies command arguments to run to update the
|
20
|
+
# status of the check. Prior to Consul 1.0, checks used a single Script
|
21
|
+
# field to define the command to run, and would always run in a shell.
|
22
|
+
# In Consul 1.0, the Args array was added so that checks can be run
|
23
|
+
# without a shell. The Script field is deprecated, and you should
|
24
|
+
# include the shell in the Args to run under a shell,
|
25
|
+
# eg. "args": ["sh", "-c", "..."].
|
18
26
|
# @!attribute [rw] docker_container_id
|
19
27
|
# @return [String] Specifies that the check is a Docker check, and Consul
|
20
28
|
# will evaluate the script every Interval in the given container using the
|
@@ -81,6 +89,7 @@ module Imperium
|
|
81
89
|
'ID' => :id,
|
82
90
|
'Name' => :name,
|
83
91
|
'Script' => :script,
|
92
|
+
'Args' => :args,
|
84
93
|
'DockerContainerID' => :docker_container_id,
|
85
94
|
'Shell' => :shell,
|
86
95
|
'Interval' => :interval,
|
data/lib/imperium/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: imperium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tyler Pickett
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|