Method: Capistrano::Deploy::SCM::Darcs#checkout

Defined in:
lib/capistrano/recipes/deploy/scm/darcs.rb

#checkout(revision, destination) ⇒ Object

Returns the command that will check out the given revision to the given destination. The ‘revision’ parameter must be the ‘hash’ value for the revision in question, as given by ‘darcs changes –xml-output’.



24
25
26
# File 'lib/capistrano/recipes/deploy/scm/darcs.rb', line 24

def checkout(revision, destination)
  scm :get, verbose, "--repo-name=#{destination}", "--to-match='hash #{revision}'", repository
end