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

available_options, output, sh

Class Method Details

.authorObject



23
24
25
# File 'lib/fastlane/actions/xctool.rb', line 23

def self.author
  "KrauseFx"
end

.descriptionObject



12
13
14
# File 'lib/fastlane/actions/xctool.rb', line 12

def self.description
  "Run tests using xctool"
end

.detailsObject



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

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

.run(params) ⇒ Object



4
5
6
7
8
9
10
# 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

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