brew/Library/Homebrew/cask/lib/hbc/cli/internal_dump.rb
2017-09-10 16:35:11 +00:00

23 lines
425 B
Ruby

module Hbc
class CLI
class InternalDump < AbstractInternalCommand
def initialize(*)
super
raise CaskUnspecifiedError if args.empty?
end
def run
raise CaskError, "Dump incomplete." if dump_casks == :incomplete
end
def dump_casks
casks.each(&:dumpcask)
end
def self.help
"dump the given Cask in YAML format"
end
end
end
end