Class: Fastlane::Actions::XctoolAction

Inherits:
Fastlane::Action show all
Defined in:
lib/fastlane/actions/xctool.rb

Class Method Summary collapse

Methods inherited from Fastlane::Action

action_name, authors, available_options, output, sh, step_text

Class Method Details

.authorObject



25
26
27
# File 'lib/fastlane/actions/xctool.rb', line 25

def self.author
  "KrauseFx"
end

.descriptionObject



14
15
16
# File 'lib/fastlane/actions/xctool.rb', line 14

def self.description
  "Run tests using xctool"
end

.detailsObject



18
19
20
21
22
23
# File 'lib/fastlane/actions/xctool.rb', line 18

def self.details
  [
    "It is recommended to store the build configuration in the `.xctool-args` file.",
    "More information available on GitHub: https://github.com/KrauseFx/fastlane/blob/master/docs/Actions.md#xctool"
  ].join(' ')
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/fastlane/actions/xctool.rb', line 29

def self.is_supported?(platform)
  [:ios, :mac].include?platform
end

.run(params) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/fastlane/actions/xctool.rb', line 4

def self.run(params)
  unless Helper.test?
    raise 'xctool not installed, please install using `brew install xctool`'.red if `which xctool`.length == 0
  end

  params = [] if params.kind_of?FastlaneCore::Configuration

  Actions.sh('xctool ' + params.join(' '))
end