notifu 1.6.2 → 1.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/notifu/actors/slack.rb +2 -2
- 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: 4854010e7da3616c5a97453edc92f874bee9e45f
|
4
|
+
data.tar.gz: df68b5961047d135c801ae52905a5c16773ecb2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2bb261159095a91c8a61581827d9b440b8080c1bcbc45a0a0c4ef04f99fd0e4b9ce4827b20e99c8e0271456e3193b53a9ea86c85ddec0a022e2d7551422ccb9
|
7
|
+
data.tar.gz: 2e097437c9acd94cb1589235697af481300ef7e26f76e293cab3851e17616a2f5bffc659aba9a2d1cb8737b8c87d951a9539e04f08345584ab87d545503d305a
|
data/lib/notifu/actors/slack.rb
CHANGED
@@ -78,7 +78,7 @@ module Notifu
|
|
78
78
|
|
79
79
|
# fallback simple message (templated, see below)
|
80
80
|
def text(tmpl)
|
81
|
-
|
81
|
+
data = OpenStruct.new({
|
82
82
|
notifu_id: self.issue.notifu_id,
|
83
83
|
datacenter: self.issue.datacenter,
|
84
84
|
host: self.issue.host,
|
@@ -91,7 +91,7 @@ module Notifu
|
|
91
91
|
service_icon: self.service_icon,
|
92
92
|
status_icon: self.status_icon
|
93
93
|
})
|
94
|
-
ERB.new(tmpl).result(
|
94
|
+
ERB.new(tmpl).result(data.instance_eval {binding})
|
95
95
|
end
|
96
96
|
|
97
97
|
# template for fallback message
|