class Capistrano::Distribution::Distributor::Tar
Deploys locally available Tar
files.
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}.
@return [nil]
@see Abstract#distribute
# File lib/capistrano/distribution/distributor/tar.rb, line 20 def distribute context.execute 'mkdir', '-p', release_path context.execute 'tar', '-x', compression_opt, strip_components_opt, '-C', release_path, '-f', url.path, subtree nil end