Class: SimCtl::Xcode::Version

Inherits:
Object
  • Object
show all
Defined in:
lib/simctl/xcode/version.rb

Class Method Summary collapse

Class Method Details

.gte?(version) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
8
9
# File 'lib/simctl/xcode/version.rb', line 5

def gte?(version)
  @version ||= Gem::Version.new(`xcodebuild -version`.scan(/Xcode (\S+)/).flatten.first)

  @version >= Gem::Version.new(version)
end