Class: Xcodeproj::XcodebuildHelper
- Inherits:
-
Object
- Object
- Xcodeproj::XcodebuildHelper
- Defined in:
- lib/xcodeproj/xcodebuild_helper.rb
Overview
Helper class which returns information from xcodebuild.
Instance Method Summary collapse
-
#initialize ⇒ XcodebuildHelper
constructor
A new instance of XcodebuildHelper.
-
#last_ios_sdk ⇒ String
The version of the last iOS sdk.
-
#last_osx_sdk ⇒ String
The version of the last OS X sdk.
-
#last_tvos_sdk ⇒ String
The version of the last tvOS sdk.
-
#last_watchos_sdk ⇒ String
The version of the last watchOS sdk.
Constructor Details
#initialize ⇒ XcodebuildHelper
Returns a new instance of XcodebuildHelper.
5 6 7 |
# File 'lib/xcodeproj/xcodebuild_helper.rb', line 5 def initialize @needs_to_parse_sdks = true end |
Instance Method Details
#last_ios_sdk ⇒ String
Returns The version of the last iOS sdk.
11 12 13 14 |
# File 'lib/xcodeproj/xcodebuild_helper.rb', line 11 def last_ios_sdk parse_sdks_if_needed versions_by_sdk[:ios].sort.last end |
#last_osx_sdk ⇒ String
Returns The version of the last OS X sdk.
18 19 20 21 |
# File 'lib/xcodeproj/xcodebuild_helper.rb', line 18 def last_osx_sdk parse_sdks_if_needed versions_by_sdk[:osx].sort.last end |
#last_tvos_sdk ⇒ String
Returns The version of the last tvOS sdk.
25 26 27 28 |
# File 'lib/xcodeproj/xcodebuild_helper.rb', line 25 def last_tvos_sdk parse_sdks_if_needed versions_by_sdk[:tvos].sort.last end |
#last_watchos_sdk ⇒ String
Returns The version of the last watchOS sdk.
32 33 34 35 |
# File 'lib/xcodeproj/xcodebuild_helper.rb', line 32 def last_watchos_sdk parse_sdks_if_needed versions_by_sdk[:watchos].sort.last end |