Module: Commands

Defined in:
Library/Homebrew/commands.rb

Class Method Summary collapse

Class Method Details

.path(cmd) ⇒ Object



2
3
4
5
6
7
8
9
# File 'Library/Homebrew/commands.rb', line 2

def self.path(cmd)
  [
    HOMEBREW_LIBRARY_PATH/"cmd/#{cmd}.sh",
    HOMEBREW_LIBRARY_PATH/"dev-cmd/#{cmd}.sh",
    HOMEBREW_LIBRARY_PATH/"cmd/#{cmd}.rb",
    HOMEBREW_LIBRARY_PATH/"dev-cmd/#{cmd}.rb",
  ].find(&:exist?)
end