Class: Fastlane::Helper::XcresulttoolHelper
- Inherits:
-
Object
- Object
- Fastlane::Helper::XcresulttoolHelper
- Defined in:
- lib/fastlane/plugin/xcresulttool/helper/xcresulttool_helper.rb
Class Method Summary collapse
-
.execute_command(command_args) ⇒ Object
Execute xcresulttool command with given arguments.
-
.show_message ⇒ Object
class methods that you define here become available in your action as ‘Helper::XcresulttoolHelper.your_method`.
-
.validate_result_bundle_path(result_bundle_path) ⇒ Object
Validate that a result bundle path exists.
Class Method Details
.execute_command(command_args) ⇒ Object
Execute xcresulttool command with given arguments
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/fastlane/plugin/xcresulttool/helper/xcresulttool_helper.rb', line 16 def self.execute_command(command_args) cmd = ['xcrun', 'xcresulttool'] + command_args UI.verbose("Executing command: #{cmd.join(' ')}") result = '' status = FastlaneCore::CommandExecutor.execute( command: cmd, print_all: false, print_command: true ) do |output| result << output end if status != 0 UI.user_error!("Command failed with status #{status}") end return result end |
.show_message ⇒ Object
class methods that you define here become available in your action as ‘Helper::XcresulttoolHelper.your_method`
11 12 13 |
# File 'lib/fastlane/plugin/xcresulttool/helper/xcresulttool_helper.rb', line 11 def self. UI.("Hello from the xcresulttool plugin helper!") end |
.validate_result_bundle_path(result_bundle_path) ⇒ Object
Validate that a result bundle path exists
37 38 39 |
# File 'lib/fastlane/plugin/xcresulttool/helper/xcresulttool_helper.rb', line 37 def self.validate_result_bundle_path(result_bundle_path) UI.user_error!("Result bundle not found at path: #{result_bundle_path}") unless File.exist?(result_bundle_path) end |