Class: Boxen::Preflight::Homebrew
- Inherits:
-
Boxen::Preflight
- Object
- Check
- Boxen::Preflight
- Boxen::Preflight::Homebrew
- Defined in:
- lib/boxen/preflight/homebrew.rb
Instance Attribute Summary
Attributes inherited from Check
Instance Method Summary collapse
Methods inherited from Check
#abort, checks, #initialize, register, run, #warn
Constructor Details
This class inherits a constructor from Boxen::Check
Instance Method Details
#ok? ⇒ Boolean
10 11 12 |
# File 'lib/boxen/preflight/homebrew.rb', line 10 def ok? !File.exist? "/usr/local/Library/Homebrew" end |
#run ⇒ Object
4 5 6 7 8 |
# File 'lib/boxen/preflight/homebrew.rb', line 4 def run warn "You have an existing Homebrew install in /usr/local", "The Boxen provides its own Homebrew, so consider deleting yours.", "Keeping both will confuse many projects." end |