class Capistrano::Distribution::Distributor::CurlTar
Deploys Tar
files downloadable using the curl
command.
Public Instance Methods
distribute()
click to toggle source
Extracts the content rooted under {#subtree} within the Tar
file indicated by {#url} to the location indicated by {#release_path}. The Tar
file is extracted as it is downloaded, so no local copy of the Tar
file itself is ever created.
@return [nil]
@see Archiver#distribute
# File lib/capistrano/distribution/distributor/curl_tar.rb, line 22 def distribute context.execute 'mkdir', '-p', release_path context.execute 'curl', '--fail', '--location', '--silent', url, '|', 'tar', '-x', compression_opt, strip_components_opt, '-C', release_path, subtree nil end