Class: Fastlane::Actions::AppstoreAction

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

Documentation collapse

Class Method Summary collapse

Methods inherited from Fastlane::Action

action_name, authors, details, sh, step_text

Class Method Details

.authorObject



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

def self.author
  'KrauseFx'
end

.available_optionsObject



24
25
26
27
28
# File 'lib/fastlane/actions/appstore.rb', line 24

def self.available_options
  options = DeliverAction.available_options
  options.delete_if { |i| i.key == :beta } # we don't want to have beta values here
  return options
end

.descriptionObject



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

def self.description
  "Upload new metadata to iTunes Connect and optionally a new binary"
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


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

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

.outputObject



30
31
32
# File 'lib/fastlane/actions/appstore.rb', line 30

def self.output
  []
end

.run(params) ⇒ Object



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

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

  Actions::DeliverAction.run(real_options)
end