Class: Fastlane::Actions::TestflightAction

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

Documentation collapse

Class Method Summary collapse

Methods inherited from Fastlane::Action

action_name, authors, details, sh, step_text

Class Method Details

.authorObject



38
39
40
# File 'lib/fastlane/actions/testflight.rb', line 38

def self.author
  'KrauseFx'
end

.available_optionsObject



24
25
26
27
28
29
30
31
32
# File 'lib/fastlane/actions/testflight.rb', line 24

def self.available_options
  [
    FastlaneCore::ConfigItem.new(key: :skip_deploy,
                                 env_name: "FL_DELIVER_SKIP_DEPLOY",
                                 description: "Skip the distribution of the app to all beta testers",
                                 default_value: false,
                                 is_string: false)
  ]
end

.descriptionObject



20
21
22
# File 'lib/fastlane/actions/testflight.rb', line 20

def self.description
  "Upload a new build to iTunes Connect. This won't upload app metadata"
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/fastlane/actions/testflight.rb', line 42

def self.is_supported?(platform)
  Actions::DeliverAction.is_supported?platform
end

.outputObject



34
35
36
# File 'lib/fastlane/actions/testflight.rb', line 34

def self.output
  []
end

.run(params) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/fastlane/actions/testflight.rb', line 7

def self.run(params)
  values = params.values
  values[:beta] = true # always true for beta actions
  real_options = FastlaneCore::Configuration.create(Actions::DeliverAction.available_options, values)
  return real_options if Helper.is_test?

  Actions::DeliverAction.run(real_options)
end