Class: Capistrano::TaskDefinition

Class | Capistrano::TaskDefinition
In: | lib/capistrano/task_definition.rb
Parent: | Object

Represents the definition of a single task.

### Methods

brief_description continue_on_error? description fully_qualified_name new

### Attributes

body | [R] |
desc | [R] |
max_hosts | [R] |
name | [R] |
namespace | [R] |
on_error | [R] |
options | [R] |

### Public Class methods

new(name, namespace, options={}, &block)

### Public Instance methods

brief_description(max_length=nil)

Returns the first sentence of the full description. If `max_length` is given, the result will be truncated if it is longer than `max_length`, and an ellipsis appended.

continue_on_error?()

Indicates whether the task wants to continue, even if a server has failed previously

description(rebuild=false)

Returns the description for this task, with newlines collapsed and whitespace stripped. Returns the empty string if there is no description for this task.

fully_qualified_name()

Returns the task‘s fully-qualified name, including the namespace

[Validate]