Class: Capistrano::Deploy::Strategy::Sync
- Inherits:
-
Remote
- Object
- Remote
- Capistrano::Deploy::Strategy::Sync
- Defined in:
- lib/capistrano/recipes/deploy/strategy/sync.rb
Overview
Implements the deployment strategy which does an SCM sync on each target host. Copies the previous release to the new location before syncing.
Instance Method Summary collapse
Instance Method Details
#deploy! ⇒ Object
12 13 14 15 16 17 |
# File 'lib/capistrano/recipes/deploy/strategy/sync.rb', line 12 def deploy! logger.debug "copying previous release to current release in preparation for sync" run "cp -R #{configuration[:current_release]} #{configuration[:release_path]}" super end |