Class: Kompo::HomebrewPath

Inherits:
Taski::Section
  • Object
show all
Defined in:
lib/kompo/tasks/homebrew.rb

Overview

Section to get the Homebrew path. Switches implementation based on whether Homebrew is already installed.

Defined Under Namespace

Classes: Install, Installed

Constant Summary collapse

COMMON_BREW_PATHS =

Common Homebrew installation paths

["/opt/homebrew/bin/brew", "/usr/local/bin/brew"].freeze

Instance Method Summary collapse

Instance Method Details

#implObject



14
15
16
# File 'lib/kompo/tasks/homebrew.rb', line 14

def impl
  homebrew_installed? ? Installed : Install
end