Class: Kompo::HomebrewPath
- Inherits:
-
Taski::Section
- Object
- Taski::Section
- Kompo::HomebrewPath
- 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
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
#impl ⇒ Object
14 15 16 |
# File 'lib/kompo/tasks/homebrew.rb', line 14 def impl homebrew_installed? ? Installed : Install end |