lib/capistrano/configuration/execution.rb
# Specifies an on_rollback hook for the currently executing task. If this
# or any subsequent task then fails, and a transaction is active, this
# hook will be executed.
Specifies an on_rollback hook for the currently executing task. If this
or any subsequent task then fails, and a transaction is active, this
hook will be executed.
Specifies an on_rollback hook for the currently executing task . If this or any subsequent task then fails and a transaction is active this hook will be executed .
def on_rollback(&block)
        if transaction?
          rollback_requests << task_call_frames.last unless task_call_frames.last.rollback
          task_call_frames.last.rollback = block
        end
      end
def on_rollback ( & block ) if transaction? rollback_requests << task_call_frames . last unless task_call_frames . last . rollback task_call_frames . last . rollback = block end end
Specifies an on_rollback hook for the currently executing task.
Specifies an on_rollback hook for the currently executing task .
# don't note a new rollback request if one has already been set
block
<not_specific>