Class: Capistrano::Deploy::Strategy::CopySubdir

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

Constant Summary collapse

VERSION =
::Capistrano::Deploy::Strategy::COPY_SUBDIR_VERSION

Instance Method Summary collapse

Instance Method Details

#deploy!Object



21
22
23
24
25
26
27
28
29
# File 'lib/capistrano/recipes/deploy/strategy/copy_subdir.rb', line 21

def deploy!
  update_repository_cache
  copy_repository_cache
  distribute!
ensure
  FileUtils.rm filename rescue nil
  FileUtils.rm_rf destination rescue nil
  FileUtils.rm_rf repository_cache rescue nil if remove_repository_cache?
end