mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
17 lines
297 B
Ruby
17 lines
297 B
Ruby
require 'requirement'
|
|
|
|
class MinimumMacOSRequirement < Requirement
|
|
fatal true
|
|
|
|
def initialize(tags)
|
|
@version = MacOS::Version.from_symbol(tags.first)
|
|
super
|
|
end
|
|
|
|
satisfy { MacOS.version >= @version }
|
|
|
|
def message
|
|
"OS X #{@version.pretty_name} or newer is required."
|
|
end
|
|
end
|