server_health_check 0.1.1 → 1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/server_health_check/version.rb +1 -1
- data/lib/server_health_check.rb +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0408992ef46a4d25aa4076b83d7c7906e3c9345
|
4
|
+
data.tar.gz: 01ac50965154187b4fee108d1b9220e605f2b92e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b60f1e3c20983646e1b04a541076b73ac056e17381a0bc2fcbabbe4f69c170c60734d8ade3445065eb8c91729730b2701756fc6acb1333ca29af63d79939152
|
7
|
+
data.tar.gz: 3195fbb59e6764370d9fcb75256ab204e828557411c1fa4ea9d112c2ef38679dd1daa4e64dfbb3fe4ed0678ac8f26d4bb8dab223632e2f2debdc887fac0f2b82
|
data/lib/server_health_check.rb
CHANGED
@@ -54,17 +54,17 @@ class ServerHealthCheck
|
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
57
|
-
def check!
|
57
|
+
def check!(name = 'custom_check')
|
58
58
|
success = yield
|
59
59
|
if success
|
60
|
-
@results[
|
60
|
+
@results[name.to_sym] = OK
|
61
61
|
true
|
62
62
|
else
|
63
|
-
@results[
|
63
|
+
@results[name.to_sym] = "Failed"
|
64
64
|
false
|
65
65
|
end
|
66
66
|
rescue => e
|
67
|
-
@results[
|
67
|
+
@results[name.to_sym] = e.to_s
|
68
68
|
end
|
69
69
|
|
70
70
|
def ok?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: server_health_check
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: '1.0'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Quenten Griffith
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
92
|
version: '0'
|
93
93
|
requirements: []
|
94
94
|
rubyforge_project:
|
95
|
-
rubygems_version: 2.5.1
|
95
|
+
rubygems_version: 2.4.5.1
|
96
96
|
signing_key:
|
97
97
|
specification_version: 4
|
98
98
|
summary: Healthcheck for web apps.
|