Method: Jets::TmpLoader#download_and_extract
- Defined in:
- lib/jets/tmp_loader.rb
#download_and_extract(zip_file, folder_dest) ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/jets/tmp_loader.rb', line 25 def download_and_extract(zip_file, folder_dest) s3_key = "jets/code/#{zip_file}" # jets/code/rack-checksum.zip download_path = "/tmp/#{zip_file}" # /tmp/rack-checksum.zip download(s3_key, download_path) unzip(download_path, folder_dest) end |