vendor/chef/chef-deploy/lib/chef-deploy/cached_deploy.rb
def update_repository_cache
      command = "if [ -d #{repository_cache} ]; then " +
        "#{source.sync(revision, repository_cache)}; " +
        "else #{source.checkout(revision, repository_cache)}; fi"
      command
    end
# Executes the SCM command for this strategy and writes the REVISION
# mark file to each host.
Executes the SCM command for this strategy and writes the REVISION
mark file to each host.
Executes the SCM command for this strategy and writes the REVISION mark file to each host .
def update_repository_cache
      command = "if [ -d #{repository_cache} ]; then " +
        "#{source.sync(revision, repository_cache)}; " +
        "else #{source.checkout(revision, repository_cache)}; fi"
      command
    end
def update_repository_cache command = "if [ -d #{repository_cache} ]; then " + "#{source.sync(revision, repository_cache)}; " + "else #{source.checkout(revision, repository_cache)}; fi" command end
Executes the SCM command for this strategy and writes the REVISION
mark file to each host.
Executes the SCM command for this strategy and writes the REVISION mark file to each host .