Class: Boxen::Preflight::OS
- Inherits:
-
Boxen::Preflight
- Object
- Check
- Boxen::Preflight
- Boxen::Preflight::OS
- Defined in:
- lib/boxen/preflight/os.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
4 5 6 |
# File 'lib/boxen/preflight/os.rb', line 4 def ok? `sw_vers -productVersion`.start_with? "10.8" end |
#run ⇒ Object
8 9 10 |
# File 'lib/boxen/preflight/os.rb', line 8 def run abort "You must be running OS X 10.8 (Mountain Lion)." end |