brew/Library/Homebrew/extend/os/mac/missing_formula.rb
Mike McQuaid 80e95b684e blacklist: move to missing_formula class instead.
This will allow extending this class so it can be used by more than
just blacklisting.
2017-03-20 18:20:31 +02:00

23 lines
547 B
Ruby

module Homebrew
module MissingFormula
class << self
def blacklisted_reason(name)
case name.downcase
when "xcode"
if MacOS.version >= :lion
<<-EOS.undent
Xcode can be installed from the App Store.
EOS
else
<<-EOS.undent
Xcode can be installed from #{Formatter.url("https://developer.apple.com/xcode/downloads/")}.
EOS
end
else
generic_blacklisted_reason(name)
end
end
end
end
end