Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/fastlane/plugin/test_center/helper/xcodebuild_string.rb
Instance Method Summary collapse
- #shellsafe_testidentifier ⇒ Object
- #strip_testcase ⇒ Object
- #testsuite ⇒ Object
- #testsuite_swift? ⇒ Boolean
Instance Method Details
#shellsafe_testidentifier ⇒ Object
20 21 22 |
# File 'lib/fastlane/plugin/test_center/helper/xcodebuild_string.rb', line 20 def shellsafe_testidentifier TestCenter::Helper::MUST_SHELLESCAPE_TESTIDENTIFIER ? self.shellescape : self end |
#strip_testcase ⇒ Object
24 25 26 |
# File 'lib/fastlane/plugin/test_center/helper/xcodebuild_string.rb', line 24 def strip_testcase split('/').first(2).join('/') end |
#testsuite ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/fastlane/plugin/test_center/helper/xcodebuild_string.rb', line 12 def testsuite if self.testsuite_swift? self.split('.')[1] else self end end |
#testsuite_swift? ⇒ Boolean
8 9 10 |
# File 'lib/fastlane/plugin/test_center/helper/xcodebuild_string.rb', line 8 def testsuite_swift? self.include?('.') end |