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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e9bc98175effba9f3974205f648bb8ae83d81a6056a2715eeada035c08302bd
4
- data.tar.gz: 724ef1b826f7f12a392d724149ead769a16c9c1d307fa1e057581ae7e9c82d08
3
+ metadata.gz: 735d0bb0fff178679598fdfa787512ebf9a89f33e12fe92d2c921a2f42310380
4
+ data.tar.gz: a602b6416cf401f9eeb5393cc5257e6438f0aae2f1379e614b9136dec41a02ea
5
5
  SHA512:
6
- metadata.gz: 687de4fd6e3a18f11526f5d3d119d9f6e75ecdddd79ef4ffd91fb4962018b116dffce7e8bed48e1fbbbbed6a6c170ee66d64ad65c4b265364d9d829eecf32bee
7
- data.tar.gz: 886f5170b21d2ad9595a24cc9805bb22e760c43cf9c90647ba9c4642c552c3c6eb0b2c6c2073fcbca480259ad40ed2f348987736475c3b1491fc7c93176bde92
6
+ metadata.gz: e46827680a42afeba56496441e1b33a52533879ddc8f9e337a71ff1151b28b108dc874c0c35d501df114e0d087360d2ee3f535369b59d61e1b729d814b012ab6
7
+ data.tar.gz: e6d1ee7687dd56dff31a5e628d78d40716c6b1dd39cb03cfcb7cc5631a77ed94d32d8562768baa495f3232c5b42e3e98e0798a84f7ea8025500228c1ccf508ef
@@ -2,6 +2,5 @@ sudo: false
2
2
  language: ruby
3
3
  before_install: gem install bundler -v 1.13.6
4
4
  rvm:
5
- - "2.3"
6
5
  - "2.4"
7
6
  - "2.5"
@@ -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,
@@ -1,3 +1,3 @@
1
1
  module Imperium
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
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.1
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: 2019-07-22 00:00:00.000000000 Z
11
+ date: 2020-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable