Sha256: 760215bff72b1a5c7e13826e2645ed603e4f7b1e2553334d1c4833eff19f93ea

Contents?: true

Size: 1.5 KB

Versions: 37

Compression:

Stored size: 1.5 KB

Contents

module Fastlane
  module Actions
    class PilotAction < Action
      def self.run(values)
        require 'pilot'
        require 'pilot/options'

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

          changelog = Actions.lane_context[SharedValues::FL_CHANGELOG]
          values[:changelog] ||= changelog if changelog

          values[:ipa] ||= Actions.lane_context[SharedValues::IPA_OUTPUT_PATH]

          return values if Helper.test?

          Pilot::BuildManager.new.upload(values) # we already have the finished config
        ensure
          FastlaneCore::UpdateChecker.show_update_status('pilot', Pilot::VERSION)
        end
      end

      #####################################################
      # @!group Documentation
      #####################################################

      def self.description
        "Upload a new binary to iTunes Connect for TestFlight beta testing"
      end

      def self.details
        [
          "More details can be found on https://github.com/fastlane/fastlane/tree/master/pilot",
          "This integration will only do the TestFlight upload"
        ].join("\n")
      end

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

      def self.authors
        ["KrauseFx"]
      end

      def self.is_supported?(platform)
        platform == :ios
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
fastlane-1.104.0 lib/fastlane/actions/pilot.rb
fastlane-1.103.0 lib/fastlane/actions/pilot.rb
fastlane-1.102.0 lib/fastlane/actions/pilot.rb
fastlane-1.101.0 lib/fastlane/actions/pilot.rb
fastlane-1.100.0 lib/fastlane/actions/pilot.rb
fastlane-1.99.0 lib/fastlane/actions/pilot.rb
fastlane-1.98.0 lib/fastlane/actions/pilot.rb
fastlane-1.97.2 lib/fastlane/actions/pilot.rb
fastlane-1.97.1 lib/fastlane/actions/pilot.rb
fastlane-1.97.0 lib/fastlane/actions/pilot.rb
fastlane-1.96.0 lib/fastlane/actions/pilot.rb
fastlane-1.95.0 lib/fastlane/actions/pilot.rb
fastlane-1.94.1 lib/fastlane/actions/pilot.rb
fastlane-1.94.0 lib/fastlane/actions/pilot.rb
fastlane-1.93.1 lib/fastlane/actions/pilot.rb
fastlane-1.93.0 lib/fastlane/actions/pilot.rb
fastlane-1.92.0 lib/fastlane/actions/pilot.rb
fastlane-1.92.0.beta2 lib/fastlane/actions/pilot.rb
fastlane-1.92.0.beta1 lib/fastlane/actions/pilot.rb
fastlane-1.91.0 lib/fastlane/actions/pilot.rb