Mike McQuaid bcb1ec5499
Improve Homebrew/brew line length.
Use 124 max line length everywhere. Also, reduce tap max line length to
189 as Homebrew/homebrew-core has that as a maximum now. In future
Homebrew/homebrew-core will also be reduced to 124 maximum line length.
2018-09-02 16:15:09 +01:00

32 lines
694 B
Ruby

module UnpackStrategy
class GenericUnar
include UnpackStrategy
using Magic
def self.extensions
[]
end
def self.can_extract?(_path)
false
end
def dependencies
@dependencies ||= [Formula["unar"]]
end
private
def extract_to_dir(unpack_dir, basename:, verbose:)
system_command! "unar",
args: [
"-force-overwrite", "-quiet", "-no-directory",
"-output-directory", unpack_dir, "--", path
],
env: { "PATH" => PATH.new(Formula["unar"].opt_bin, ENV["PATH"]) },
verbose: verbose
end
end
end