Sha256: 727c859e2296742101c8ededed6e20a7c81ef479e50693da83e99a9746b94a96
Contents?: true
Size: 744 Bytes
Versions: 19
Compression:
Stored size: 744 Bytes
Contents
require 'capistrano/recipes/deploy/strategy/remote' module Capistrano module Deploy module Strategy # Implements the deployment strategy which does an SCM checkout on each # target host. This is the default deployment strategy for Capistrano. class Git < Remote def clone! scm_run clone end def deploy! scm_run sync end protected def clone @clone ||= source.checkout(revision, configuration[:release_path]) end # Returns the SCM's checkout command for the revision to deploy. def sync @sync ||= source.sync(revision, configuration[:release_path]) end end end end end
Version data entries
19 entries across 19 versions & 1 rubygems