Class: Homebrew::Cmd::Caskroom Private
- Inherits:
-
AbstractCommand
- Object
- AbstractCommand
- Homebrew::Cmd::Caskroom
- Defined in:
- cmd/--caskroom.rb,
sorbet/rbi/dsl/homebrew/cmd/caskroom.rbi
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.
Defined Under Namespace
Classes: Args
Class Method Summary collapse
- .command_name ⇒ String private
Instance Method Summary collapse
- #args ⇒ Homebrew::Cmd::Caskroom::Args private
- #run ⇒ void private
Methods inherited from AbstractCommand
command, dev_cmd?, #initialize, parser, ruby_cmd?
Constructor Details
This class inherits a constructor from Homebrew::AbstractCommand
Class Method Details
.command_name ⇒ String
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.
10 |
# File 'cmd/--caskroom.rb', line 10 def self.command_name = "--caskroom" |
Instance Method Details
#args ⇒ Homebrew::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.
10 |
# File 'sorbet/rbi/dsl/homebrew/cmd/caskroom.rbi', line 10 def args; end |
#run ⇒ void
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 |