Class: FPM::Fry::Source::Package::TarCache
- Defined in:
- lib/fpm/fry/source/package.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Cache
Instance Method Summary collapse
Methods inherited from Cache
#cache_valid?, #cachekey, #fetch_url, #initialize, #tempfile, #update!
Constructor Details
This class inherits a constructor from FPM::Fry::Source::Package::Cache
Instance Method Details
#copy_to(dst) ⇒ Object
115 116 117 118 119 120 |
# File 'lib/fpm/fry/source/package.rb', line 115 def copy_to(dst) update! cmd = ['tar','-xf',tempfile,'-C',dst] logger.debug("Running tar",cmd: cmd) system(*cmd) end |
#tar_io ⇒ Object
110 111 112 113 |
# File 'lib/fpm/fry/source/package.rb', line 110 def tar_io update! ioclass.open(tempfile) end |