Class: FPM::Fry::Source::Archive::ZipCache
- Defined in:
- lib/fpm/fry/source/archive.rb
Instance Attribute Summary
Attributes inherited from Cache
Instance Method Summary collapse
Methods inherited from Cache
Instance Method Details
#copy_to(dst) ⇒ Object
217 218 219 220 |
# File 'lib/fpm/fry/source/archive.rb', line 217 def copy_to(dst) update! Exec['unzip', tempfile, '-d', dst ] end |
#prefix ⇒ Object
222 223 224 225 |
# File 'lib/fpm/fry/source/archive.rb', line 222 def prefix unpack! Source::prefix(unpacked_tmpdir) end |
#tar_io ⇒ Object
212 213 214 215 |
# File 'lib/fpm/fry/source/archive.rb', line 212 def tar_io unpack! return Exec::popen('tar','-c','.', chdir: unpacked_tmpdir) end |