Class: Capistrano::NetStorage::Archiver::Zip
- Includes:
- Utils
- Defined in:
- lib/capistrano/net_storage/archiver/zip.rb
Overview
Archiver class for zip format
Instance Method Summary collapse
Instance Method Details
#archive ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/capistrano/net_storage/archiver/zip.rb', line 14 def archive c = config run_locally do within c.local_release_path do execute :zip, c.local_archive_path, '-r', '.' end end end |
#check ⇒ Object
8 9 10 11 12 |
# File 'lib/capistrano/net_storage/archiver/zip.rb', line 8 def check run_locally do execute :which, 'zip' end end |
#extract ⇒ Object
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/capistrano/net_storage/archiver/zip.rb', line 23 def extract c = config on c.servers, in: :groups, limit: c.max_parallels do execute :mkdir, '-p', c.archives_path execute :mkdir, '-p', release_path within release_path do execute :unzip, c.archive_path end end end |