vendor/chef/chef-deploy/lib/chef-deploy/cached_deploy.rb
# 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 copy_repository_cache
      if copy_exclude.empty? 
        return "cp -RPp #{repository_cache} #{configuration[:release_path]} && #{mark}"
      else
        exclusions = copy_exclude.map { |e| "--exclude=\"#{e}\"" }.join(' ')
        return "rsync -lrpt #{exclusions} #{repository_cache}/* #{configuration[:release_path]} && #{mark}"
      end
    end
def copy_repository_cache if copy_exclude . empty? return "cp -RPp #{repository_cache} #{configuration[:release_path]} && #{mark}" else exclusions = copy_exclude . map { | e | "--exclude=\"#{e}\"" } . join ( ' ' ) return "rsync -lrpt #{exclusions} #{repository_cache}/* #{configuration[:release_path]} && #{mark}" end 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 .