Skip to content

Commit ae49b1f

Browse files
Update mls_ruby_capistrano_slacker.rake
1 parent fbc0114 commit ae49b1f

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

lib/capistrano/tasks/mls_ruby_capistrano_slacker.rake

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ namespace :mls_ruby_capistrano_slacker do
136136
author_link: "https://#{ URI.parse( ENV.fetch('CI_API_V4_URL') ).host }/users/#{ ENV.fetch('GITLAB_USER_LOGIN') }",
137137
author_icon: author_icon,
138138
image_url: image_url,
139-
fields: fetch(:slack_attachment_fields),
140-
footer: fetch(:github_url_to_the_project),
141-
footer_ico: fetch(:github_mls_logo),
139+
fields: fetch(:mls_ruby_slack_attachment_fields),
140+
footer: fetch(:mls_ruby_github_url_to_the_project),
141+
footer_ico: fetch(:mls_ruby_github_mls_logo),
142142
ts: Time.now.to_i
143143
}
144144
]
@@ -163,9 +163,9 @@ namespace :mls_ruby_capistrano_slacker do
163163
author_name: ENV.fetch('GITLAB_USER_NAME'),
164164
author_link: "https://#{ URI.parse( ENV.fetch('CI_API_V4_URL') ).host }/users/#{ ENV.fetch('GITLAB_USER_LOGIN') }",
165165
author_icon: author_icon,
166-
fields: fetch(:slack_attachment_fields),
167-
footer: fetch(:github_url_to_the_project),
168-
footer_ico: fetch(:github_mls_logo),
166+
fields: fetch(:mls_ruby_slack_attachment_fields),
167+
footer: fetch(:mls_ruby_github_url_to_the_project),
168+
footer_ico: fetch(:mls_ruby_github_mls_logo),
169169
ts: Time.now.to_i
170170
}
171171
]
@@ -190,9 +190,9 @@ namespace :mls_ruby_capistrano_slacker do
190190
author_name: ENV.fetch('GITLAB_USER_NAME'),
191191
author_link: "https://#{ URI.parse( ENV.fetch('CI_API_V4_URL') ).host }/users/#{ ENV.fetch('GITLAB_USER_LOGIN') }",
192192
author_icon: author_icon,
193-
fields: fetch(:slack_attachment_fields),
194-
footer: fetch(:github_url_to_the_project),
195-
footer_ico: fetch(:github_mls_logo),
193+
fields: fetch(:mls_ruby_slack_attachment_fields),
194+
footer: fetch(:mls_ruby_github_url_to_the_project),
195+
footer_ico: fetch(:mls_ruby_github_mls_logo),
196196
ts: Time.now.to_i,
197197
mrkdwn_in: ['text', 'pretext']
198198
}
@@ -207,12 +207,12 @@ end
207207

208208
namespace :load do
209209
task :defaults do
210-
set :mls_ruby_capistrano_slacker_webhook_url, -> { fail ':mls_ruby_capistrano_slacker_webhook_url is not set' }
211-
set :github_url_to_the_project, '<https://github.com/MLSDev/mls_ruby_capistrano_slacker|mls_ruby_capistrano_slacker>'
212-
set :github_mls_logo, 'https://avatars2.githubusercontent.com/u/1436035?s=50&v=4'
210+
set :mls_ruby_capistrano_slacker_webhook_url, -> { fail ':mls_ruby_capistrano_slacker_webhook_url is not set' }
211+
set :mls_ruby_github_url_to_the_project, '<https://github.com/MLSDev/mls_ruby_capistrano_slacker|mls_ruby_capistrano_slacker>'
212+
set :mls_ruby_github_mls_logo, 'https://avatars2.githubusercontent.com/u/1436035?s=50&v=4'
213213
set :mls_ruby_capistrano_slacker_post_release_description, false
214-
set :mls_ruby_gitlab_private_token, ENV['GITLAB__PRIVATE_TOKEN']
215-
set :slack_attachment_fields, -> {
214+
set :mls_ruby_gitlab_private_token, ENV['GITLAB__PRIVATE_TOKEN']
215+
set :mls_ruby_slack_attachment_fields, -> {
216216
slack_attachment_fields__job = {
217217
title: 'Job',
218218
value: "<#{ ENV.fetch('CI_JOB_URL') }| #{ ENV.fetch('CI_JOB_STAGE') } >",

0 commit comments

Comments
 (0)