Class: FPM::Fry::Source::Archive::ZipCache

Inherits:
Cache
  • Object
show all
Defined in:
lib/fpm/fry/source/archive.rb

Instance Attribute Summary

Attributes inherited from Cache

#package, #tempdir

Instance Method Summary collapse

Methods inherited from Cache

#cachekey

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

#prefixObject



222
223
224
225
# File 'lib/fpm/fry/source/archive.rb', line 222

def prefix
  unpack!
  Source::prefix(unpacked_tmpdir)
end

#tar_ioObject



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