Class: Fastlane::Actions::DeliverAction

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

Class Method Summary collapse

Methods inherited from Fastlane::Action

action_name, authors, details, output, return_value, sh, step_text

Class Method Details

.authorObject



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

def self.author
  "KrauseFx"
end

.available_optionsObject



28
29
30
31
32
# File 'lib/fastlane/actions/deliver.rb', line 28

def self.available_options
  require "deliver"
  require "deliver/options"
  FastlaneCore::CommanderGenerator.new.generate(Deliver::Options.available_options)
end

.descriptionObject



24
25
26
# File 'lib/fastlane/actions/deliver.rb', line 24

def self.description
  "Uses deliver to upload new app metadata and builds to iTunes Connect"
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


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

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

.run(config) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/fastlane/actions/deliver.rb', line 7

def self.run(config)
  require 'deliver'

  begin
    FastlaneCore::UpdateChecker.start_looking_for_update('deliver') unless Helper.is_test?

    config.load_configuration_file("Deliverfile")
    config[:screenshots_path] = Actions.lane_context[SharedValues::SNAPSHOT_SCREENSHOTS_PATH] if Actions.lane_context[SharedValues::SNAPSHOT_SCREENSHOTS_PATH]
    config[:ipa] = Actions.lane_context[SharedValues::IPA_OUTPUT_PATH] if Actions.lane_context[SharedValues::IPA_OUTPUT_PATH]

    return config if Helper.test?
    Deliver::Runner.new(config).run
  ensure
    FastlaneCore::UpdateChecker.show_update_status('deliver', Deliver::VERSION)
  end
end