lib/slackistrano/tasks/slack.rake in slackistrano-4.0.0 vs lib/slackistrano/tasks/slack.rake in slackistrano-4.0.1

- old
+ new

@@ -1,8 +1,13 @@ namespace :slack do namespace :deploy do + desc 'Notify about starting deploy' + task :starting do + Slackistrano::Capistrano.new(self).run(:starting) + end + desc 'Notify about updating deploy' task :updating do Slackistrano::Capistrano.new(self).run(:updating) end @@ -25,16 +30,17 @@ task :failed do Slackistrano::Capistrano.new(self).run(:failed) end desc 'Test Slack integration' - task :test => %i[updating updated reverting reverted failed] do + task :test => %i[starting updating updated reverting reverted failed] do # all tasks run as dependencies end end end +before 'deploy:starting', 'slack:deploy:starting' before 'deploy:updating', 'slack:deploy:updating' before 'deploy:reverting', 'slack:deploy:reverting' after 'deploy:finishing', 'slack:deploy:updated' after 'deploy:finishing_rollback', 'slack:deploy:reverted' after 'deploy:failed', 'slack:deploy:failed'