Class: Homebrew::Cmd::Caskroom

Inherits:
AbstractCommand show all
Defined in:
cmd/--caskroom.rb

Instance Attribute Summary

Attributes inherited from AbstractCommand

#args

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AbstractCommand

command, #initialize, parser

Constructor Details

This class inherits a constructor from Homebrew::AbstractCommand

Class Method Details

.command_nameString

Returns:



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

def self.command_name = "--caskroom"

Instance Method Details

#runvoid

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