Class: Boxen::Preflight::Homebrew

Inherits:
Boxen::Preflight show all
Defined in:
lib/boxen/preflight/homebrew.rb

Instance Attribute Summary

Attributes inherited from Check

#config

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

Returns:

  • (Boolean)


10
11
12
# File 'lib/boxen/preflight/homebrew.rb', line 10

def ok?
  !File.exist? "/usr/local/Library/Homebrew"
end

#runObject



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