nat-monitor 2.0.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nat-monitor/version.rb +1 -1
- data/lib/nat-monitor.rb +2 -2
- data/spec/lib/nat-monitor_spec.rb +3 -3
- 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: a1235409f5df5cccb50365d392938004356b5e3a
|
4
|
+
data.tar.gz: fb8168d52daf7dc0e80113a0b933dd70c3317348
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6fd10c30a009124de8724c53528645352ed6447f0348089641368303c89c5db198087388c37ff5637dad10eab9d357f0eaac0aaae923fa7828b24f9dd3dd0c3
|
7
|
+
data.tar.gz: 6b32d93860d6ce2bd44996d3168f47339daa2db8b40b84dc66af96788da8e7762d376e65a8628f06d355a33813dd9a6385ad7432bdefc6c937ac507a0a650199
|
data/lib/nat-monitor/version.rb
CHANGED
data/lib/nat-monitor.rb
CHANGED
@@ -50,9 +50,9 @@ module EtTools
|
|
50
50
|
def main_loop
|
51
51
|
loop do
|
52
52
|
begin
|
53
|
-
notify_monitor '
|
53
|
+
notify_monitor 'run'
|
54
54
|
heartbeat
|
55
|
-
notify_monitor '
|
55
|
+
notify_monitor 'complete'
|
56
56
|
rescue => e
|
57
57
|
msg = "Caught #{e.class} exception: #{e.message}"
|
58
58
|
notify_monitor 'fail', msg
|
@@ -14,9 +14,9 @@ describe EtTools::NatMonitor do
|
|
14
14
|
'aws_access_key_id' => 'AWS_ACCESS_KEY_ID',
|
15
15
|
'aws_secret_access_key' => 'AWS_SECRET_ACCESS_KEY',
|
16
16
|
'monitor_urls' => {
|
17
|
-
'
|
18
|
-
'
|
19
|
-
'fail'
|
17
|
+
'run' => 'run',
|
18
|
+
'complete' => 'complete',
|
19
|
+
'fail' => 'fail'
|
20
20
|
},
|
21
21
|
'nodes' => (
|
22
22
|
{ @my_instance_id => '1.1.1.1' }
|