slackistrano 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/slackistrano/tasks/slack.rake +4 -0
- data/lib/slackistrano/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: f993b8e5fe8e067e6d10f0d44fc94c32da707c77
|
4
|
+
data.tar.gz: fed2b59b5986b97e48813b5d15fb1ee974ab06db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 909d367d8eb80514eb142e8d399513cdc0bb08a8e5451744d2b36b652d7963f2c118fa60a9e12857ec7760e2b13cade478ee919b55bcf34b77e489b4626e1bc4
|
7
|
+
data.tar.gz: 7d461350212eb53435d455fc85d444bdb6cea56362d7ef988f61f8ef157240e055941c53d715faa7b82f02a5417e3da4924194c30e56a66689576362701632aa
|
data/README.md
CHANGED
@@ -41,6 +41,7 @@ Set your team and token in your application's config/deploy.rb:
|
|
41
41
|
Optionally, override the other slack settings:
|
42
42
|
|
43
43
|
set :slack_icon_url, ->{ 'http://gravatar.com/avatar/885e1c523b7975c4003de162d8ee8fee?r=g&s=40' }
|
44
|
+
set :slack_icon_emoji, ->{ nil } # will override icon_url
|
44
45
|
set :slack_channel, ->{ '#general' }
|
45
46
|
set :slack_username, ->{ 'Slackistrano' }
|
46
47
|
set :slack_run_starting, ->{ true }
|
@@ -12,6 +12,7 @@ namespace :slack do
|
|
12
12
|
channel: fetch(:slack_channel),
|
13
13
|
username: fetch(:slack_username),
|
14
14
|
icon_url: fetch(:slack_icon_url),
|
15
|
+
icon_emoji: fetch(:slack_icon_emoji),
|
15
16
|
text: fetch(:slack_msg_starting)
|
16
17
|
}
|
17
18
|
)
|
@@ -29,6 +30,7 @@ namespace :slack do
|
|
29
30
|
channel: fetch(:slack_channel),
|
30
31
|
username: fetch(:slack_username),
|
31
32
|
icon_url: fetch(:slack_icon_url),
|
33
|
+
icon_emoji: fetch(:slack_icon_emoji),
|
32
34
|
text: fetch(:slack_msg_finished)
|
33
35
|
}
|
34
36
|
)
|
@@ -46,6 +48,7 @@ namespace :slack do
|
|
46
48
|
channel: fetch(:slack_channel),
|
47
49
|
username: fetch(:slack_username),
|
48
50
|
icon_url: fetch(:slack_icon_url),
|
51
|
+
icon_emoji: fetch(:slack_icon_emoji),
|
49
52
|
text: fetch(:slack_msg_failed)
|
50
53
|
}
|
51
54
|
)
|
@@ -66,6 +69,7 @@ namespace :load do
|
|
66
69
|
set :slack_token, ->{ nil } # Token from Incoming WebHooks. Required.
|
67
70
|
set :slack_channel, ->{ nil } # Channel to post to. Optional. Defaults to WebHook setting.
|
68
71
|
set :slack_icon_url, ->{ 'http://gravatar.com/avatar/885e1c523b7975c4003de162d8ee8fee?r=g&s=40' }
|
72
|
+
set :slack_icon_emoji, ->{ nil } # Emoji to use. Overrides icon_url. Must be a string (ex: ':shipit:')
|
69
73
|
set :slack_username, ->{ 'Slackistrano' }
|
70
74
|
set :slack_run_starting, ->{ true } # Set to false to disable starting message.
|
71
75
|
set :slack_run_finished, ->{ true } # Set to false to disable finished message.
|
data/lib/slackistrano/version.rb
CHANGED