Class: Hbc::CLI::InternalDump

Inherits:
AbstractInternalCommand show all
Defined in:
Library/Homebrew/cask/lib/hbc/cli/internal_dump.rb

Instance Attribute Summary

Attributes inherited from AbstractCommand

#args

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AbstractInternalCommand

command_name, visible

Methods inherited from AbstractCommand

abstract?, command_name, needs_init?, run, visible

Methods included from Options

included, #process_arguments

Constructor Details

#initializeInternalDump

Returns a new instance of InternalDump



4
5
6
7
# File 'Library/Homebrew/cask/lib/hbc/cli/internal_dump.rb', line 4

def initialize(*)
  super
  raise CaskUnspecifiedError if args.empty?
end

Class Method Details

.helpObject



13
14
15
# File 'Library/Homebrew/cask/lib/hbc/cli/internal_dump.rb', line 13

def self.help
  "dump the given Cask in YAML format"
end

Instance Method Details

#runObject



9
10
11
# File 'Library/Homebrew/cask/lib/hbc/cli/internal_dump.rb', line 9

def run
  casks.each(&:dumpcask)
end