blob: e21ce86b6cdbf61d873655712120a879d9625a01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
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
|