aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc/cli/internal_dump.rb
blob: 8a38ce1beda0404494ea3ab456c4a8ca8183f27b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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