vendor/chef/chef-deploy/lib/chef-deploy/cached_deploy.rb
def deploy
    @configuration[:release_path] = "#{@configuration[:deploy_to]}/releases/#{Time.now.utc.strftime("%Y%m%d%H%M%S")}"
    if @configuration[:revision] == ''
       @configuration[:revision] = source.query_revision(@configuration[:branch]) {|cmd| run cmd}
    end
    Chef::Log.info "deploying branch: #{@configuration[:branch]} rev: #{@configuration[:revision]}"
    Chef::Log.info "updating the cached checkout"
    run(update_repository_cache)
    Chef::Log.info "copying the cached version to #{configuration[:release_path]}"
    run(copy_repository_cache)
    install_gems
    callback(:before_migrate)
    migrate
    callback(:before_symlink)
    symlink
    callback(:before_restart)
    restart
    callback(:after_restart)
    cleanup
  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 deploy
    @configuration[:release_path] = "#{@configuration[:deploy_to]}/releases/#{Time.now.utc.strftime("%Y%m%d%H%M%S")}"
    if @configuration[:revision] == ''
       @configuration[:revision] = source.query_revision(@configuration[:branch]) {|cmd| run cmd}
    end
    Chef::Log.info "deploying branch: #{@configuration[:branch]} rev: #{@configuration[:revision]}"
    Chef::Log.info "updating the cached checkout"
    run(update_repository_cache)
    Chef::Log.info "copying the cached version to #{configuration[:release_path]}"
    run(copy_repository_cache)
    install_gems
    callback(:before_migrate)
    migrate
    callback(:before_symlink)
    symlink
    callback(:before_restart)
    restart
    callback(:after_restart)
    cleanup
  end
def deploy @configuration [ :release_path ] = "#{@configuration[:deploy_to]}/releases/#{Time.now.utc.strftime("%Y%m%d%H%M%S")}" if @configuration [ :revision ] == '' @configuration [ :revision ] = source . query_revision ( @configuration [ :branch ] ) { | cmd | run cmd } end Chef :: Log . info "deploying branch: #{@configuration[:branch]} rev: #{@configuration[:revision]}" Chef :: Log . info "updating the cached checkout" run ( update_repository_cache ) Chef :: Log . info "copying the cached version to #{configuration[:release_path]}" run ( copy_repository_cache ) install_gems callback ( :before_migrate ) migrate callback ( :before_symlink ) symlink callback ( :before_restart ) restart callback ( :after_restart ) cleanup 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 .