Capistrano allows a great deal of configuration, and the options and methods available to you might seem overwhelming at first. Here's a list of most of the generally useful configuration methods that you can use.
- Associates a role with multiple servers. Also lets you define dynamic roles that get their server lists at runtime.
- Associates a server with multiple roles.
Tasks and Namespaces
- Defines (or redefines) a new task that you can invoke via the Capistrano command-line utility, "cap".
- Associates a description with the next task that gets defined.
- Defines (or reopens) a new namespace, within which you can define other namespaces and tasks.
- Returns a reference to the topmost namespace.
- Declare that some action or task should occur before another task.
- Declare that some action or task should occur after another task.
Variables can be transparently referenced (though not assigned) in a Capistrano recipe file or task, simply by referencing them as if they were a local variable. Note, though, that to set a Capistrano variable you must resort to the set method.
- Associates a value with a variable.
- Deletes a variable.
- Returns the value of a variable, or a default value if the variable has not been set.