Class: Boxen::Preflight::OS

Inherits:
Boxen::Preflight show all
Defined in:
lib/boxen/preflight/os.rb

Constant Summary collapse

SUPPORTED_RELEASES =
%w(10.8 10.9)

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)


6
7
8
# File 'lib/boxen/preflight/os.rb', line 6

def ok?
  osx? && supported_release?
end

#runObject



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