Alias extract_nestedly to extract for uncompressed files.

This commit is contained in:
Markus Reiter 2018-07-16 21:36:18 +02:00
parent 85f76e312a
commit 954edb2885

View File

@ -69,11 +69,6 @@ class UnpackStrategy
end
def extract_nestedly(to: nil, basename: nil)
if is_a?(UncompressedUnpackStrategy)
extract(to: to, basename: basename)
return
end
Dir.mktmpdir do |tmp_unpack_dir|
tmp_unpack_dir = Pathname(tmp_unpack_dir)
@ -106,6 +101,8 @@ class DirectoryUnpackStrategy < UnpackStrategy
end
class UncompressedUnpackStrategy < UnpackStrategy
alias extract_nestedly extract
private
def extract_to_dir(unpack_dir, basename:)