Merge pull request #4571 from reitermarkus/brew-cask-_dump
Remove unused `brew cask _dump` command.
This commit is contained in:
commit
50ddcb8152
@ -111,29 +111,6 @@ module Hbc
|
||||
end
|
||||
alias == eql?
|
||||
|
||||
def dumpcask
|
||||
odebug "Cask instance dumps in YAML:"
|
||||
odebug "Cask instance toplevel:", to_yaml
|
||||
[
|
||||
:name,
|
||||
:homepage,
|
||||
:url,
|
||||
:appcast,
|
||||
:version,
|
||||
:sha256,
|
||||
:artifacts,
|
||||
:caveats,
|
||||
:depends_on,
|
||||
:conflicts_with,
|
||||
:container,
|
||||
:gpg,
|
||||
:accessibility_access,
|
||||
:auto_updates,
|
||||
].each do |method|
|
||||
odebug "Cask instance method '#{method}':", send(method).to_yaml
|
||||
end
|
||||
end
|
||||
|
||||
def to_h
|
||||
{
|
||||
"name" => name,
|
||||
|
||||
@ -29,7 +29,6 @@ require "hbc/cli/zap"
|
||||
|
||||
require "hbc/cli/abstract_internal_command"
|
||||
require "hbc/cli/internal_audit_modified_casks"
|
||||
require "hbc/cli/internal_dump"
|
||||
require "hbc/cli/internal_help"
|
||||
require "hbc/cli/internal_stanza"
|
||||
|
||||
|
||||
@ -1,18 +0,0 @@
|
||||
module Hbc
|
||||
class CLI
|
||||
class InternalDump < AbstractInternalCommand
|
||||
def initialize(*)
|
||||
super
|
||||
raise CaskUnspecifiedError if args.empty?
|
||||
end
|
||||
|
||||
def run
|
||||
casks.each(&:dumpcask)
|
||||
end
|
||||
|
||||
def self.help
|
||||
"dump the given Cask in YAML format"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
x
Reference in New Issue
Block a user