Class: Boxen::Preflight::OS
- Inherits:
-
Boxen::Preflight
- Object
- Check
- Boxen::Preflight
- Boxen::Preflight::OS
- Defined in:
- lib/boxen/preflight/os.rb
Constant Summary collapse
- SUPPORTED_RELEASES =
%w(10.8 10.9 10.10 10.11)
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
6 7 8 |
# File 'lib/boxen/preflight/os.rb', line 6 def ok? osx? && supported_release? end |
#run ⇒ Object
10 11 12 |
# File 'lib/boxen/preflight/os.rb', line 10 def run abort "You must be running one of the following OS X versions: #{SUPPORTED_RELEASES.join(' ')}." end |