18 lines
367 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module UnpackStrategy
class Uncompressed
include UnpackStrategy
def extract_nestedly(prioritise_extension: false, **options)
extract(**options)
end
private
def extract_to_dir(unpack_dir, basename:, verbose:)
FileUtils.cp path, unpack_dir/basename, preserve: true, verbose: verbose
end
end
end