Class: Capistrano::Deploy::SCM::Accurev

Class | Capistrano::Deploy::SCM::Accurev
In: | lib/capistrano/recipes/deploy/scm/accurev.rb
Parent: | Base

Accurev bridge for use by Capistrano. This implementation does not implement all features of a Capistrano SCM module. The ones that are left out are either exceedingly difficult to implement with Accurev or are considered bad form.

When using this module in a project, the following variables are used:

     * :repository - This should match the depot that code lives in. If your code
                     exists in a subdirectory, you can append the path depot.
                     eg. foo-depot/bar_dir
     * :stream - The stream in the depot that code should be pulled from. If
                 left blank, the depot stream will be used
     * :revision - Should be in the form 'stream/transaction'.

### Methods

diff export head log query_revision

### Included Modules

REXML

### Classes and Modules

Class Capistrano::Deploy::SCM::Accurev::InternalRevision

### Public Instance methods

diff(from, to=head)

Returns the command needed to show the diff between what is deployed and what is pending. Because Accurev can not do this task without creating some streams, two time basis streams will be created for the purposes of doing the diff.

export(revision_id, destination)

Pops a copy of the code for the specified Accurev revision identifier. The revision identifier is represented as a stream & transaction ID combo. Accurev can only pop a particular transaction if a stream is created on the server with a time basis of that transaction id. Therefore, we will create a stream with the required criteria and pop that.

head()

Defines pseudo-revision value for the most recent changes to be deployed.

log(from, to=head)

Returns the command needed to show the changes that exist between the two revisions.

query_revision(revision) {|show_streams_for(rev_stream)| ...}

Given an Accurev revision identifier, this method returns an identifier that can be used for later SCM calls. This returned identifier will not change as a result of further SCM activity.

[Validate]