capistrano3-notification 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25a8933628d07ceacd3ec62fa4a90ce8fbdcdbfc
|
4
|
+
data.tar.gz: a0e8e7b144e6e126d478ef2df066800cef41928a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c85805264a8cf7d34f03d4eef836ba2562f8dfe35e06fdf58c2c9186546336c9e7d94f2cafcb4d4652423a961e04f200bda15a63833863be6d5f7074602da902
|
7
|
+
data.tar.gz: 95b094bbefb35116b3039faa5cb78730f1fec066e083b53fab9f247348697749b3d4985d5cec6ea7b95ef88ccd3a4c3242496460c58fc0564974a4bce40ef002
|
@@ -22,7 +22,7 @@ namespace :notification do
|
|
22
22
|
port = fetch(:irc_port)
|
23
23
|
channel = fetch(:irc_channel)
|
24
24
|
message = fetch(:notification)
|
25
|
-
|
25
|
+
next unless user && host && port && channel && message
|
26
26
|
require 'shout-bot'
|
27
27
|
url = "irc://#{user}@#{host}:#{port}/#{channel}"
|
28
28
|
ShoutBot.shout(url) { |irc| irc.say message }
|
@@ -34,7 +34,7 @@ namespace :notification do
|
|
34
34
|
channel = fetch(:slack_channel)
|
35
35
|
icon = fetch(:slack_icon) || nil
|
36
36
|
message = fetch(:notification)
|
37
|
-
|
37
|
+
next unless user && channel && webhook_url && message
|
38
38
|
require 'slack-notifier'
|
39
39
|
notifier_options = { username: user, channel: channel }.reject { |_x, y| y.nil? }
|
40
40
|
icon_type = case icon
|