sensu-run-check 0.2.0 → 0.2.1

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
  SHA1:
3
- metadata.gz: 124fa69d27a4dc7394117818fc7ae64f01a349f4
4
- data.tar.gz: c8c8073b37ca4ccce499be14337a9dab581232f7
3
+ metadata.gz: 876668cde4ac4246658523ddf225769d69039f4e
4
+ data.tar.gz: 76ca161f468c5764ee69d644b445ec44d8e76abc
5
5
  SHA512:
6
- metadata.gz: 46b7d5a9c7cd60eae203612e285364b47eaa0f0d06951f5ce8b8bdb4a5cf97a0d18415865a8b64749529aec958e6def984586397b3a93981dcae0cfddadd13ca
7
- data.tar.gz: 6b679510da951ea62c99d9036ed409f6f29b36f0295385c43c51e77f6d2c1a7665d2f1b5cb69c449c1be1499ce78bcab55fc081fa6ba91a40a9cb0ba2f9a5620
6
+ metadata.gz: f9a59e9e9701513ce47c4f4eb840b63939eeef8fe09bfd476b098c98f9852b3973e65e7a4b74e5733179d46faa2349fb3eb761828b4b70587555e334a06f28f4
7
+ data.tar.gz: 70c2a8618639fb41939a1163cca42586eeced4af5df1040eef5b61d8c04e265a77745f0cdae22b550da72580e78719c4c45cf7e601a0b24ea963c31e5e1ce366
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Sensu Run Check
2
2
 
3
- Often after just doing a change on servers you want to just be sure that they’re all going to pass a certain or all (Sensu)[http://sensuapp.org] checks. This gem exposes Sensu checks to be executed local on the command line.
3
+ Often after just doing a change on servers you want to just be sure that they’re all going to pass a certain or all [Sensu](http://sensuapp.org) checks. This gem exposes Sensu checks to be executed local on the command line.
4
4
 
5
5
  _WARNING_ This is very much a hack and will break with other versions* of Sensu!
6
6
 
@@ -39,6 +39,8 @@ module SensuRunCheck
39
39
  statuses << status
40
40
  puts "#{checkname} #{status} #{stdout}"
41
41
  end
42
+ # Exit with critical if there is any critical, otherwise exit mith the highest.
43
+ exit(2) if statuses.include?(2)
42
44
  exit(statuses.max)
43
45
  else
44
46
  stdout, status = s.run_check(options[:run_check])
@@ -1,3 +1,3 @@
1
1
  module SensuRunCheck
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-run-check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rickard von Essen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-20 00:00:00.000000000 Z
11
+ date: 2015-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu