system_health 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/system_health/monitors/base.rb +10 -2
- data/lib/system_health/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 649b6b51406bda1aec88b5865610daaf7886daf1
|
|
4
|
+
data.tar.gz: 1155745115676abe0b455e8d672d97477594f958
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ce6bbd99f24675ef3e6b6a522905ee43cd73c5f406666cd9eefadf9cd97752a960ae5ade7f6177efe35517427c8ee72aeccf7eb5d65ca0719d5a1be01ac77359
|
|
7
|
+
data.tar.gz: 139474d30143f8904c40ad0fc6e3ad86aace8e76a01878fafdc05bf3e27fc67eb310829021085131a4037bb3b158b969490d1fd784f278bc1b8340b41178c9c9
|
|
@@ -12,14 +12,22 @@ module SystemHealth
|
|
|
12
12
|
error_messages.count
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
+
def description
|
|
16
|
+
raise
|
|
17
|
+
end
|
|
18
|
+
|
|
15
19
|
private
|
|
16
20
|
|
|
17
21
|
def add_error_messages
|
|
18
|
-
|
|
22
|
+
add_error_message(description) if bad_data?
|
|
19
23
|
end
|
|
20
24
|
|
|
21
25
|
def add_error_message(message)
|
|
22
|
-
|
|
26
|
+
@error_messages << message
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def bad_data?
|
|
30
|
+
raise
|
|
23
31
|
end
|
|
24
32
|
end
|
|
25
33
|
end
|