aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorMike McQuaid2016-09-07 09:11:06 +0100
committerMike McQuaid2016-09-07 09:11:06 +0100
commitf1cc1265afa43afb9bffba17c9fc18776b62dd99 (patch)
tree2718a6f179d31e8e50273bd2fd3f565fae08a3da /Library/Homebrew/extend
parent921aa015760a0b85345efd8fb921537499657872 (diff)
downloadbrew-f1cc1265afa43afb9bffba17c9fc18776b62dd99.tar.bz2
Refactor MacOS check_development_tools usage.
Better use the abstraction layer so e.g. Linux could have similarly fatal checks for these things.
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/os/mac/diagnostic.rb17
1 files changed, 11 insertions, 6 deletions
diff --git a/Library/Homebrew/extend/os/mac/diagnostic.rb b/Library/Homebrew/extend/os/mac/diagnostic.rb
index 11d497d60..27ef71d75 100644
--- a/Library/Homebrew/extend/os/mac/diagnostic.rb
+++ b/Library/Homebrew/extend/os/mac/diagnostic.rb
@@ -1,7 +1,7 @@
module Homebrew
module Diagnostic
class Checks
- def all_development_tools_checks
+ def development_tools_checks
%w[
check_for_unsupported_osx
check_for_prerelease_xcode
@@ -12,11 +12,16 @@ module Homebrew
]
end
- def strict_development_tools_checks
- %w[
- check_xcode_up_to_date
- check_clt_up_to_date
- ]
+ def fatal_development_tools_checks
+ if MacOS.prerelease?
+ %w[
+ check_xcode_up_to_date
+ check_clt_up_to_date
+ ]
+ else
+ %w[
+ ]
+ end
end
def check_for_unsupported_osx