Class: EhbrsRubyUtils::Fs::CompressedPackage
- Inherits:
-
EacFs::FileInfo
- Object
- EacFs::FileInfo
- EhbrsRubyUtils::Fs::CompressedPackage
- Defined in:
- lib/ehbrs_ruby_utils/fs/compressed_package.rb
Constant Summary collapse
- MIME_TYPES =
{ 'application/zip' => :zip, 'application/x-7z-compressed' => :sevenzip, 'application/x-rar' => :rar, 'application/x-tar' => :tar }.freeze
Instance Method Summary collapse
Instance Method Details
#extract_to(target) ⇒ Object
17 18 19 20 21 |
# File 'lib/ehbrs_ruby_utils/fs/compressed_package.rb', line 17 def extract_to(target) target = target.to_pathname target.mkpath sub_extract_to(target) end |