deckard 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/deckard/util.rb +4 -4
- metadata +3 -3
data/lib/deckard/util.rb
CHANGED
@@ -44,25 +44,25 @@ class Deckard
|
|
44
44
|
if priority == 0
|
45
45
|
Deckard::Log.info(log)
|
46
46
|
elsif priority == 1
|
47
|
+
Deckard::Log.info(log)
|
47
48
|
Deckard::Log.info("sending email alert to #{email_to}")
|
48
49
|
send_email(email_to, subject, body)
|
49
|
-
Deckard::Log.info(log)
|
50
50
|
elsif priority == 2
|
51
|
+
Deckard::Log.info(log)
|
52
|
+
Deckard::Log.info("sending email alert to #{email_to}")
|
53
|
+
send_email(email_to, subject, body)
|
51
54
|
begin
|
52
55
|
if on_call_contacts.has_key?("notifo_usernames")
|
53
56
|
Deckard::Log.info("sending notifo alert to #{on_call_contacts["notifo_usernames"]}")
|
54
57
|
send_notifo(on_call_contacts["notifo_usernames"], subject, url)
|
55
|
-
Deckard::Log.info(log)
|
56
58
|
else
|
57
59
|
Deckard::Log.info("sending email alert to #{email_to} and sms to #{on_call_contacts["sms_email"]}")
|
58
60
|
send_email(email_to, subject, body)
|
59
|
-
Deckard::Log.info(log)
|
60
61
|
send_email("#{on_call_contacts["sms_email"]}", subject, body)
|
61
62
|
end
|
62
63
|
rescue
|
63
64
|
Deckard::Log.info("sending email alert to #{email_to} and sms to #{on_call_contacts["sms_email"]}")
|
64
65
|
send_email(email_to, subject, body)
|
65
|
-
Deckard::Log.info(log)
|
66
66
|
send_email("#{on_call_contacts["sms_email"]}", subject, body)
|
67
67
|
end
|
68
68
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 5
|
8
|
-
-
|
9
|
-
version: 0.5.
|
8
|
+
- 2
|
9
|
+
version: 0.5.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- joe williams
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-07-
|
17
|
+
date: 2010-07-17 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|