README.md in slackistrano-0.1.10 vs README.md in slackistrano-0.1.11
- old
+ new
@@ -58,12 +58,13 @@
set :slack_channel_failed, -> { nil } # Channel to post to. Optional. Defaults to :slack_channel.
set :slack_username, -> { 'Slackistrano' }
set :slack_run_starting, -> { true }
set :slack_run_finished, -> { true }
set :slack_run_failed, -> { true }
- set :slack_msg_starting, -> { "#{ENV['USER'] || ENV['USERNAME']} has started deploying branch #{fetch :branch} of #{fetch :application} to #{fetch :rails_env, 'production'}" }
- set :slack_msg_finished, -> { "#{ENV['USER'] || ENV['USERNAME']} has finished deploying branch #{fetch :branch} of #{fetch :application} to #{fetch :rails_env, 'production'}" }
- set :slack_msg_failed, -> { "#{ENV['USER'] || ENV['USERNAME']} failed to deploy branch #{fetch :branch} of #{fetch :application} to #{fetch :rails_env, 'production'}" }
+ 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 :rails_env, 'production'}" }
+ set :slack_msg_finished, -> { "#{fetch :slack_deploy_user} has finished deploying branch #{fetch :branch} of #{fetch :application} to #{fetch :rails_env, 'production'}" }
+ set :slack_msg_failed, -> { "#{fetch :slack_deploy_user} failed to deploy branch #{fetch :branch} of #{fetch :application} to #{fetch :rails_env, 'production'}" }
set :slack_title_starting, -> { nil }
set :slack_title_finished, -> { nil }
set :slack_title_failed, -> { nil }
**Note**: You may wish to disable one of the notifications if another service (ex: