Sha256: b6496db402b584cb8e1bb9b899a8f066ddf72f0ecf26c0b0b965744e90cb5b08

Contents?: true

Size: 964 Bytes

Versions: 2

Compression:

Stored size: 964 Bytes

Contents

namespace :deploy_hooks do
  namespace :deploy do
    task :updating do
      Capistrano::DeployHooks::Main.new(self).run(:updating)
    end

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

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

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

    task :failed do
      Capistrano::DeployHooks::Main.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',           'deploy_hooks:deploy:updating'
before 'deploy:reverting',          'deploy_hooks:deploy:reverting'
after  'deploy:finishing',          'deploy_hooks:deploy:updated'
after  'deploy:finishing_rollback', 'deploy_hooks:deploy:reverted'
after  'deploy:failed',             'deploy_hooks:deploy:failed'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
capistrano-deploy_hooks-0.1.1 lib/capistrano/tasks/deploy_hooks.rake
capistrano-deploy_hooks-0.1.0 lib/capistrano/tasks/deploy_hooks.rake