Merge pull request #4571 from reitermarkus/brew-cask-_dump

Remove unused `brew cask _dump` command.
This commit is contained in:
Markus Reiter 2018-08-01 00:55:30 +02:00 committed by GitHub
commit 50ddcb8152
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 42 deletions

View File

@ -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,

View File

@ -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"

View File

@ -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