Class: Homebrew::Cmd::Caskroom Private

Inherits:
AbstractCommand show all
Defined in:
sorbet/rbi/dsl/homebrew/cmd/caskroom.rbi,
cmd/--caskroom.rb

Overview

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

DO NOT EDIT MANUALLY This is an autogenerated file for dynamic methods in Homebrew::Cmd::Caskroom. Please instead update this file by running bin/tapioca dsl Homebrew::Cmd::Caskroom.

Defined Under Namespace

Classes: Args

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AbstractCommand

command, dev_cmd?, #initialize, parser

Constructor Details

This class inherits a constructor from Homebrew::AbstractCommand

Class Method Details

.command_nameString

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:



10
# File 'cmd/--caskroom.rb', line 10

def self.command_name = "--caskroom"

Instance Method Details

#argsHomebrew::Cmd::Caskroom::Args

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.



9
# File 'sorbet/rbi/dsl/homebrew/cmd/caskroom.rbi', line 9

def args; end

#runvoid

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

This method returns an undefined value.



24
25
26
27
28
29
30
31
32
# File 'cmd/--caskroom.rb', line 24

def run
  if args.named.to_casks.blank?
    puts Cask::Caskroom.path
  else
    args.named.to_casks.each do |cask|
      puts "#{Cask::Caskroom.path}/#{cask.token}"
    end
  end
end