class Capistrano::Distribution::Distributor::Zip
Deploys locally available ZIP files.
Public Instance Methods
distribute()
click to toggle source
Extracts the content rooted under {#subtree} within the ZIP file indicated by {#url} to the location indicated by {#release_path}.
@return [nil]
@see Abstract#distribute
# File lib/capistrano/distribution/distributor/zip.rb, line 17 def distribute context.execute 'mkdir', '-p', repo_path context.execute 'unzip', '-q', '-d', repo_path, url.path, subtree.join('\\*') context.execute 'mv', repo_path.join(subtree), release_path nil end