Class: Capistrano::Deploy::Strategy::Upload

Inherits:
Base
  • Object
show all
Defined in:
lib/capistrano/recipes/deploy/strategy/upload.rb

Overview

This class implements a strategy for deployments with prebuilt packages. It copies the package to each target host and uncompresses it to the release directory. While normally discouraged, you usually want to use the :none SCM with this strategy (or for even less overhead, the :passthrough SCM from capistrano-deploy-scm-passthrough). You’ll also need to set :repository to the target archive.

set :scm, :none
set :deploy_via, :upload
set :repository, "target/#{application}.tar.gz"

This strategy is meant to be a drop-in replacement for the :copy strategy.

Instance Method Summary collapse

Instance Method Details

#deploy!Object

Copies the package to all target servers, and uncompresses it on each of them into the deployment directory.



23
24
25
# File 'lib/capistrano/recipes/deploy/strategy/upload.rb', line 23

def deploy!
  distribute!
end