brew style --fix
This commit is contained in:
parent
82dc57dfea
commit
f38a672938
@ -11,8 +11,6 @@ module UnpackStrategy
|
|||||||
include UnpackStrategy
|
include UnpackStrategy
|
||||||
include SystemCommand::Mixin
|
include SystemCommand::Mixin
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sig { override.params(unpack_dir: Pathname, basename: Pathname, verbose: T::Boolean).returns(T.untyped) }
|
sig { override.params(unpack_dir: Pathname, basename: Pathname, verbose: T::Boolean).returns(T.untyped) }
|
||||||
def extract_to_dir(unpack_dir, basename:, verbose:)
|
def extract_to_dir(unpack_dir, basename:, verbose:)
|
||||||
with_env(TZ: "UTC") do
|
with_env(TZ: "UTC") do
|
||||||
|
|||||||
@ -8,8 +8,6 @@ module UnpackStrategy
|
|||||||
class Bazaar < Directory
|
class Bazaar < Directory
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def self.can_extract?(path)
|
def self.can_extract?(path)
|
||||||
super && (path/".bzr").directory?
|
super && (path/".bzr").directory?
|
||||||
end
|
end
|
||||||
|
|||||||
@ -8,8 +8,6 @@ module UnpackStrategy
|
|||||||
|
|
||||||
include UnpackStrategy
|
include UnpackStrategy
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def self.extensions
|
def self.extensions
|
||||||
[".bz2"]
|
[".bz2"]
|
||||||
|
|||||||
@ -8,8 +8,6 @@ module UnpackStrategy
|
|||||||
|
|
||||||
include UnpackStrategy
|
include UnpackStrategy
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def self.extensions
|
def self.extensions
|
||||||
[".cab"]
|
[".cab"]
|
||||||
|
|||||||
@ -8,8 +8,6 @@ module UnpackStrategy
|
|||||||
class Compress < Tar
|
class Compress < Tar
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def self.extensions
|
def self.extensions
|
||||||
[".Z"]
|
[".Z"]
|
||||||
|
|||||||
@ -6,8 +6,6 @@ require_relative "directory"
|
|||||||
module UnpackStrategy
|
module UnpackStrategy
|
||||||
# Strategy for unpacking CVS repositories.
|
# Strategy for unpacking CVS repositories.
|
||||||
class Cvs < Directory
|
class Cvs < Directory
|
||||||
|
|
||||||
|
|
||||||
def self.can_extract?(path)
|
def self.can_extract?(path)
|
||||||
super && (path/"CVS").directory?
|
super && (path/"CVS").directory?
|
||||||
end
|
end
|
||||||
|
|||||||
@ -8,8 +8,6 @@ module UnpackStrategy
|
|||||||
|
|
||||||
include UnpackStrategy
|
include UnpackStrategy
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def self.extensions
|
def self.extensions
|
||||||
[]
|
[]
|
||||||
|
|||||||
@ -8,8 +8,6 @@ module UnpackStrategy
|
|||||||
class Executable < Uncompressed
|
class Executable < Uncompressed
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def self.extensions
|
def self.extensions
|
||||||
[".sh", ".bash"]
|
[".sh", ".bash"]
|
||||||
|
|||||||
@ -11,8 +11,6 @@ module UnpackStrategy
|
|||||||
include UnpackStrategy
|
include UnpackStrategy
|
||||||
extend SystemCommand::Mixin
|
extend SystemCommand::Mixin
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def self.extensions
|
def self.extensions
|
||||||
[]
|
[]
|
||||||
|
|||||||
@ -8,8 +8,6 @@ module UnpackStrategy
|
|||||||
|
|
||||||
include UnpackStrategy
|
include UnpackStrategy
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def self.extensions
|
def self.extensions
|
||||||
[]
|
[]
|
||||||
|
|||||||
@ -6,8 +6,6 @@ require_relative "directory"
|
|||||||
module UnpackStrategy
|
module UnpackStrategy
|
||||||
# Strategy for unpacking Git repositories.
|
# Strategy for unpacking Git repositories.
|
||||||
class Git < Directory
|
class Git < Directory
|
||||||
|
|
||||||
|
|
||||||
def self.can_extract?(path)
|
def self.can_extract?(path)
|
||||||
super && (path/".git").directory?
|
super && (path/".git").directory?
|
||||||
end
|
end
|
||||||
|
|||||||
@ -8,8 +8,6 @@ module UnpackStrategy
|
|||||||
|
|
||||||
include UnpackStrategy
|
include UnpackStrategy
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def self.extensions
|
def self.extensions
|
||||||
[".gz"]
|
[".gz"]
|
||||||
|
|||||||
@ -8,8 +8,6 @@ module UnpackStrategy
|
|||||||
class Jar < Uncompressed
|
class Jar < Uncompressed
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def self.extensions
|
def self.extensions
|
||||||
[".apk", ".jar"]
|
[".apk", ".jar"]
|
||||||
|
|||||||
@ -8,8 +8,6 @@ module UnpackStrategy
|
|||||||
|
|
||||||
include UnpackStrategy
|
include UnpackStrategy
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def self.extensions
|
def self.extensions
|
||||||
[".lha", ".lzh"]
|
[".lha", ".lzh"]
|
||||||
|
|||||||
@ -8,8 +8,6 @@ module UnpackStrategy
|
|||||||
class LuaRock < Uncompressed
|
class LuaRock < Uncompressed
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def self.extensions
|
def self.extensions
|
||||||
[".rock"]
|
[".rock"]
|
||||||
|
|||||||
@ -8,8 +8,6 @@ module UnpackStrategy
|
|||||||
|
|
||||||
include UnpackStrategy
|
include UnpackStrategy
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def self.extensions
|
def self.extensions
|
||||||
[".lz"]
|
[".lz"]
|
||||||
|
|||||||
@ -8,8 +8,6 @@ module UnpackStrategy
|
|||||||
|
|
||||||
include UnpackStrategy
|
include UnpackStrategy
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def self.extensions
|
def self.extensions
|
||||||
[".lzma"]
|
[".lzma"]
|
||||||
|
|||||||
@ -6,8 +6,6 @@ require_relative "directory"
|
|||||||
module UnpackStrategy
|
module UnpackStrategy
|
||||||
# Strategy for unpacking Mercurial repositories.
|
# Strategy for unpacking Mercurial repositories.
|
||||||
class Mercurial < Directory
|
class Mercurial < Directory
|
||||||
|
|
||||||
|
|
||||||
def self.can_extract?(path)
|
def self.can_extract?(path)
|
||||||
super && (path/".hg").directory?
|
super && (path/".hg").directory?
|
||||||
end
|
end
|
||||||
|
|||||||
@ -8,8 +8,6 @@ module UnpackStrategy
|
|||||||
class MicrosoftOfficeXml < Uncompressed
|
class MicrosoftOfficeXml < Uncompressed
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def self.extensions
|
def self.extensions
|
||||||
[
|
[
|
||||||
|
|||||||
@ -8,8 +8,6 @@ module UnpackStrategy
|
|||||||
class Otf < Uncompressed
|
class Otf < Uncompressed
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def self.extensions
|
def self.extensions
|
||||||
[".otf"]
|
[".otf"]
|
||||||
|
|||||||
@ -8,8 +8,6 @@ module UnpackStrategy
|
|||||||
|
|
||||||
include UnpackStrategy
|
include UnpackStrategy
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def self.extensions
|
def self.extensions
|
||||||
[".7z"]
|
[".7z"]
|
||||||
|
|||||||
@ -8,8 +8,6 @@ module UnpackStrategy
|
|||||||
|
|
||||||
include UnpackStrategy
|
include UnpackStrategy
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def self.extensions
|
def self.extensions
|
||||||
[".pax"]
|
[".pax"]
|
||||||
|
|||||||
@ -8,8 +8,6 @@ module UnpackStrategy
|
|||||||
class Pkg < Uncompressed
|
class Pkg < Uncompressed
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def self.extensions
|
def self.extensions
|
||||||
[".pkg", ".mkpg"]
|
[".pkg", ".mkpg"]
|
||||||
|
|||||||
@ -8,8 +8,6 @@ module UnpackStrategy
|
|||||||
|
|
||||||
include UnpackStrategy
|
include UnpackStrategy
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def self.extensions
|
def self.extensions
|
||||||
[".rar"]
|
[".rar"]
|
||||||
|
|||||||
@ -8,8 +8,6 @@ module UnpackStrategy
|
|||||||
class SelfExtractingExecutable < GenericUnar
|
class SelfExtractingExecutable < GenericUnar
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def self.extensions
|
def self.extensions
|
||||||
[]
|
[]
|
||||||
|
|||||||
@ -8,8 +8,6 @@ module UnpackStrategy
|
|||||||
class Sit < GenericUnar
|
class Sit < GenericUnar
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def self.extensions
|
def self.extensions
|
||||||
[".sit"]
|
[".sit"]
|
||||||
|
|||||||
@ -6,8 +6,6 @@ require_relative "directory"
|
|||||||
module UnpackStrategy
|
module UnpackStrategy
|
||||||
# Strategy for unpacking Subversion repositories.
|
# Strategy for unpacking Subversion repositories.
|
||||||
class Subversion < Directory
|
class Subversion < Directory
|
||||||
|
|
||||||
|
|
||||||
def self.can_extract?(path)
|
def self.can_extract?(path)
|
||||||
super && (path/".svn").directory?
|
super && (path/".svn").directory?
|
||||||
end
|
end
|
||||||
|
|||||||
@ -11,8 +11,6 @@ module UnpackStrategy
|
|||||||
include UnpackStrategy
|
include UnpackStrategy
|
||||||
extend SystemCommand::Mixin
|
extend SystemCommand::Mixin
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def self.extensions
|
def self.extensions
|
||||||
[
|
[
|
||||||
|
|||||||
@ -8,8 +8,6 @@ module UnpackStrategy
|
|||||||
class Ttf < Uncompressed
|
class Ttf < Uncompressed
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def self.extensions
|
def self.extensions
|
||||||
[".ttc", ".ttf"]
|
[".ttc", ".ttf"]
|
||||||
|
|||||||
@ -8,8 +8,6 @@ module UnpackStrategy
|
|||||||
|
|
||||||
include UnpackStrategy
|
include UnpackStrategy
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def self.extensions
|
def self.extensions
|
||||||
[".xar"]
|
[".xar"]
|
||||||
|
|||||||
@ -8,8 +8,6 @@ module UnpackStrategy
|
|||||||
|
|
||||||
include UnpackStrategy
|
include UnpackStrategy
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def self.extensions
|
def self.extensions
|
||||||
[".xz"]
|
[".xz"]
|
||||||
|
|||||||
@ -8,8 +8,6 @@ module UnpackStrategy
|
|||||||
|
|
||||||
include UnpackStrategy
|
include UnpackStrategy
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def self.extensions
|
def self.extensions
|
||||||
[".zip"]
|
[".zip"]
|
||||||
|
|||||||
@ -8,8 +8,6 @@ module UnpackStrategy
|
|||||||
|
|
||||||
include UnpackStrategy
|
include UnpackStrategy
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def self.extensions
|
def self.extensions
|
||||||
[".zst"]
|
[".zst"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user