Class: Moku::Pipeline::Rollback

Inherits:
Pipeline
  • Object
show all
Defined in:
lib/moku/pipeline/rollback.rb

Overview

Rollback to a previous, cached release

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Pipeline

for, #initialize, register, registry

Constructor Details

This class inherits a constructor from Moku::Pipeline::Pipeline

Class Method Details

.handles?(command) ⇒ Boolean

Returns:

  • (Boolean)

15
16
17
# File 'lib/moku/pipeline/rollback.rb', line 15

def self.handles?(command)
  command.action == :rollback
end

Instance Method Details

#callObject


19
20
21
22
23
24
25
26
# File 'lib/moku/pipeline/rollback.rb', line 19

def call
  step :retrieve_signature
  step :construct_release
  step :set_current
  step :log_release
  step :restart
  Moku.logger.info "Rollback successful!"
end