lib/slackistrano/tasks/slack.rake in slackistrano-0.1.10 vs lib/slackistrano/tasks/slack.rake in slackistrano-0.1.11

- old
+ new

@@ -93,12 +93,13 @@ set :slack_icon_emoji, -> { nil } # Emoji to use. Overrides icon_url. Must be a string (ex: ':shipit:') set :slack_username, -> { 'Slackistrano' } set :slack_run_starting, -> { true } # Set to false to disable starting message. set :slack_run_finished, -> { true } # Set to false to disable finished message. set :slack_run_failed, -> { true } # Set to false to disable failure message. - set :slack_msg_starting, -> { "#{ENV['USER'] || ENV['USERNAME']} has started deploying branch #{fetch :branch} of #{fetch :application} to #{fetch :stage, 'an unknown stage'}" } - set :slack_msg_finished, -> { "#{ENV['USER'] || ENV['USERNAME']} has finished deploying branch #{fetch :branch} of #{fetch :application} to #{fetch :stage, 'an unknown stage'}" } - set :slack_msg_failed, -> { "#{ENV['USER'] || ENV['USERNAME']} failed to deploy branch #{fetch :branch} of #{fetch :application} to #{fetch :stage, 'an unknown stage'}" } + set :slack_deploy_user, -> { ENV['USER'] || ENV['USERNAME'] } + set :slack_msg_starting, -> { "#{fetch :slack_deploy_user} has started deploying branch #{fetch :branch} of #{fetch :application} to #{fetch :stage, 'an unknown stage'}" } + set :slack_msg_finished, -> { "#{fetch :slack_deploy_user} has finished deploying branch #{fetch :branch} of #{fetch :application} to #{fetch :stage, 'an unknown stage'}" } + set :slack_msg_failed, -> { "#{fetch :slack_deploy_user} failed to deploy branch #{fetch :branch} of #{fetch :application} to #{fetch :stage, 'an unknown stage'}" } set :slack_title_starting, -> { nil } set :slack_title_finished, -> { nil } set :slack_title_failed, -> { nil } set :slack_pretext_starting, -> { nil } set :slack_pretext_finished, -> { nil }