Module | Capistrano::Configuration::Execution |
In: |
lib/capistrano/configuration/execution.rb
|
TaskCallFrame | = | Struct.new(:task, :rollback) | A struct for representing a single instance of an invoked task. |
rollback_requests | [R] | The stack of tasks that have registered rollback handlers within the current transaction. If this is nil, then there is no transaction that is currently active. |
task_call_frames | [R] | The call stack of the tasks. The currently executing task may inspect this to see who its caller was. The current task is always the last element of this stack. |
Returns the TaskDefinition object for the currently executing task. It returns nil if there is no task being executed.
Attempts to locate the task at the given fully-qualified path, and execute it. If no such task exists, a Capistrano::NoSuchTaskError will be raised.
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.
Invoke a set of tasks in a transaction. If any task fails (raises an exception), all tasks executed within the transaction are inspected to see if they have an associated on_rollback hook, and if so, that hook is called.