brew/Library/Homebrew/cask/lib/hbc/cli/internal_dump.rb
2017-06-13 19:45:29 +02:00

23 lines
424 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 == :incomplet
end
def dump_casks
casks.each(&:dumpcask)
end
def self.help
"dump the given Cask in YAML format"
end
end
end
end