Sha256: 2ccc150ad70eab81ef0e9a2ae1118cff196bfff7cd726714f264350a2b1d59de

Contents?: true

Size: 899 Bytes

Versions: 2

Compression:

Stored size: 899 Bytes

Contents

namespace :slack do
  namespace :deploy do

    task :updating do
      Slackistrano::Capistrano.new(self).run(:updating)
    end

    task :reverting do
      Slackistrano::Capistrano.new(self).run(:reverting)
    end

    task :updated do
      Slackistrano::Capistrano.new(self).run(:updated)
    end

    task :reverted do
      Slackistrano::Capistrano.new(self).run(:reverted)
    end

    task :failed do
      Slackistrano::Capistrano.new(self).run(:failed)
    end

    task :test => %i[updating updated reverting reverted failed] do
      # all tasks run as dependencies
    end

  end
end

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'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
slackistrano-3.1.0 lib/slackistrano/tasks/slack.rake
slackistrano-3.1.0.beta lib/slackistrano/tasks/slack.rake