Class: Capistrano::Deploy::Strategy::Base

Class | Capistrano::Deploy::Strategy::Base
In: | lib/capistrano/recipes/deploy/strategy/base.rb
Parent: | Object

This class defines the abstract interface for all Capistrano deployment strategies. Subclasses must implement at least the deploy! method.

### Methods

check! deploy! method_missing new system

### Attributes

configuration | [R] |

### Public Class methods

new(config={})

Instantiates a strategy with a reference to the given configuration.

### Public Instance methods

check!()

Performs a check on the remote hosts to determine whether everything is setup such that a deploy could succeed.

deploy!()

Executes the necessary commands to deploy the revision of the source code identified by the `revision` variable. Additionally, this should write the value of the `revision` variable to a file called REVISION, in the base of the deployed revision. This file is used by other tasks, to perform diffs and such.

### Protected Instance methods

method_missing(sym, *args, &block)

This is to allow helper methods like "run" and "put" to be more easily accessible to strategy implementations.

system(*args)

A wrapper for Kernel#system that logs the command being executed.

[Validate]