Module Capistrano::Configuration::Execution
In: lib/capistrano/configuration/execution.rb

Methods

Constants

TaskCallFrame = Struct.new(:task, :rollback)   A struct for representing a single instance of an invoked task.

Public Instance methods

Returns the TaskDefinition object for the currently executing task. It returns nil if there is no task being executed.

Executes the task with the given name, without invoking any associated callbacks.

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.

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.

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.

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.

Returns true if there is a transaction currently active.

Protected Instance methods

Invokes the task‘s body directly, without setting up the call frame.

[Validate]