brew/Library/Homebrew/cask/lib/hbc/cli/internal_dump.rb

19 lines
320 B
Ruby
Raw Normal View History

2016-09-24 13:52:43 +02:00
module Hbc
class CLI
2017-05-20 19:08:03 +02:00
class InternalDump < AbstractInternalCommand
2017-05-21 00:15:56 +02:00
def initialize(*)
super
raise CaskUnspecifiedError if args.empty?
2017-05-20 02:57:37 +02:00
end
def run
casks.each(&:dumpcask)
2016-08-18 22:11:42 +03:00
end
2016-09-24 13:52:43 +02:00
def self.help
"dump the given Cask in YAML format"
2016-09-24 13:52:43 +02:00
end
end
2016-08-18 22:11:42 +03:00
end
end