Class: Boxen::Preflight::OS

Inherits:
Boxen::Preflight show all
Defined in:
lib/boxen/preflight/os.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)


4
5
6
# File 'lib/boxen/preflight/os.rb', line 4

def ok?
  `sw_vers -productVersion`.start_with? "10.8"
end

#runObject



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