Skip to content

Commit ff55c11

Browse files
Update mls_ruby_capistrano_slacker.rake
1 parent a1d10b0 commit ff55c11

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

lib/capistrano/tasks/mls_ruby_capistrano_slacker.rake

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace :mls_ruby_capistrano_slacker do
1111
# BEGINNING
1212
#
1313
task :notify_about_beginning do
14-
puts 'ⓂⓁⓈ-ⓉⒺⒸ [🛠] :: [ℹ️] notify_about_beginning'
14+
puts 'ⓂⓁⓈ-ⓉⒺⒸ [🛠] [mls_ruby_capistrano_slacker] :: [ℹ️] notify_about_beginning'
1515

1616
on roles(:all) do |host|
1717
notifier = Slack::Notifier.new \
@@ -22,29 +22,29 @@ namespace :mls_ruby_capistrano_slacker do
2222
#
2323
# NOTE: getting random lorem picsum image
2424
#
25-
info 'ⓂⓁⓈ-ⓉⒺⒸ [🛠] :: [ℹ️] get https://picsum.photos random url'
25+
info 'ⓂⓁⓈ-ⓉⒺⒸ [🛠] [mls_ruby_capistrano_slacker] :: [ℹ️] get https://picsum.photos random url'
2626
begin
2727
lorem_picsum_domain = "https://picsum.photos"
2828
lorem_picsum_response = Net::HTTP.get_response(URI.parse( "#{ lorem_picsum_domain }/200" ))
2929
lorem_picsum_path = lorem_picsum_response['location']
3030
image_url = "#{ lorem_picsum_domain }/#{ lorem_picsum_path }"
31-
info 'ⓂⓁⓈ-ⓉⒺⒸ [🛠] :: [✅️] lorem pixum random url'
31+
info 'ⓂⓁⓈ-ⓉⒺⒸ [🛠] [mls_ruby_capistrano_slacker] :: [✅️] lorem pixum random url'
3232
rescue => e
3333
image_url = nil
34-
info "ⓂⓁⓈ-ⓉⒺⒸ [🛠] :: [🚨] #{ e.message }"
34+
info "ⓂⓁⓈ-ⓉⒺⒸ [🛠] [mls_ruby_capistrano_slacker] :: [🚨] #{ e.message }"
3535
end
3636

3737
#
3838
# NOTE: response from GitLab
3939
#
40-
info 'ⓂⓁⓈ-ⓉⒺⒸ [🛠] :: [ℹ️] get GitLab user avatar'
40+
info 'ⓂⓁⓈ-ⓉⒺⒸ [🛠] [mls_ruby_capistrano_slacker] :: [ℹ️] get GitLab user avatar'
4141
begin
4242
gitlab_response = Net::HTTP.get_response(URI.parse("#{ ENV.fetch('CI_API_V4_URL') }/users?username=#{ ENV.fetch('GITLAB_USER_LOGIN') }"))
4343
author_icon = JSON.parse(gitlab_response.body).first['avatar_url']
44-
info 'ⓂⓁⓈ-ⓉⒺⒸ [🛠] :: [✅️] got link'
44+
info 'ⓂⓁⓈ-ⓉⒺⒸ [🛠] [mls_ruby_capistrano_slacker] :: [✅️] got link'
4545
rescue => e
4646
author_icon = nil
47-
info "ⓂⓁⓈ-ⓉⒺⒸ [🛠] :: [🚨] #{ e.message }"
47+
info "ⓂⓁⓈ-ⓉⒺⒸ [🛠] [mls_ruby_capistrano_slacker] :: [🚨] #{ e.message }"
4848
end
4949

5050
notifier.post text: '', attachments: [
@@ -95,7 +95,7 @@ namespace :mls_ruby_capistrano_slacker do
9595
# FAILED
9696
#
9797
task :notify_failed do
98-
puts 'ⓂⓁⓈ-ⓉⒺⒸ [🛠] :: [ℹ️] notify_failed'
98+
puts 'ⓂⓁⓈ-ⓉⒺⒸ [🛠] [mls_ruby_capistrano_slacker] :: [ℹ️] notify_failed'
9999

100100
on roles(:all) do |host|
101101
notifier = Slack::Notifier.new \
@@ -106,14 +106,14 @@ namespace :mls_ruby_capistrano_slacker do
106106
#
107107
# NOTE: response from GitLab
108108
#
109-
info 'ⓂⓁⓈ-ⓉⒺⒸ [🛠] :: [ℹ️] get GitLab user avatar'
109+
info 'ⓂⓁⓈ-ⓉⒺⒸ [🛠] [mls_ruby_capistrano_slacker] :: [ℹ️] get GitLab user avatar'
110110
begin
111111
gitlab_response = Net::HTTP.get_response(URI.parse("#{ ENV.fetch('CI_API_V4_URL') }/users?username=#{ ENV.fetch('GITLAB_USER_LOGIN') }"))
112112
author_icon = JSON.parse(gitlab_response.body).first['avatar_url']
113-
info 'ⓂⓁⓈ-ⓉⒺⒸ [🛠] :: [✅️] got link'
113+
info 'ⓂⓁⓈ-ⓉⒺⒸ [🛠] [mls_ruby_capistrano_slacker] :: [✅️] got link'
114114
rescue => e
115115
author_icon = nil
116-
info "ⓂⓁⓈ-ⓉⒺⒸ [🛠] :: [🚨] #{ e.message }"
116+
info "ⓂⓁⓈ-ⓉⒺⒸ [🛠] [mls_ruby_capistrano_slacker] :: [🚨] #{ e.message }"
117117
end
118118

119119
notifier.post text: '', attachments: [
@@ -163,7 +163,7 @@ namespace :mls_ruby_capistrano_slacker do
163163
# FINISHED
164164
#
165165
task :notify_finished do
166-
puts 'ⓂⓁⓈ-ⓉⒺⒸ [🛠] :: [ℹ️] notify_finished'
166+
puts 'ⓂⓁⓈ-ⓉⒺⒸ [🛠] [mls_ruby_capistrano_slacker] :: [ℹ️] notify_finished'
167167

168168
on roles(:all) do |host|
169169
notifier = Slack::Notifier.new \
@@ -174,14 +174,14 @@ namespace :mls_ruby_capistrano_slacker do
174174
#
175175
# NOTE: response from GitLab
176176
#
177-
info 'ⓂⓁⓈ-ⓉⒺⒸ [🛠] :: [ℹ️] get GitLab user avatar'
177+
info 'ⓂⓁⓈ-ⓉⒺⒸ [🛠] [mls_ruby_capistrano_slacker] :: [ℹ️] get GitLab user avatar'
178178
begin
179179
gitlab_response = Net::HTTP.get_response(URI.parse("#{ ENV.fetch('CI_API_V4_URL') }/users?username=#{ ENV.fetch('GITLAB_USER_LOGIN') }"))
180180
author_icon = JSON.parse(gitlab_response.body).first['avatar_url']
181-
info 'ⓂⓁⓈ-ⓉⒺⒸ [🛠] :: [✅️] got link'
181+
info 'ⓂⓁⓈ-ⓉⒺⒸ [🛠] [mls_ruby_capistrano_slacker] :: [✅️] got link'
182182
rescue => e
183183
author_icon = nil
184-
info "ⓂⓁⓈ-ⓉⒺⒸ [🛠] :: [🚨] #{ e.message }"
184+
info "ⓂⓁⓈ-ⓉⒺⒸ [🛠] [mls_ruby_capistrano_slacker] :: [🚨] #{ e.message }"
185185
end
186186

187187
notifier.post text: '', attachments: [

0 commit comments

Comments
 (0)