Sha256: 23507c643faffa4b6e522ce76f37082e1a52c65b86425db663078b0209d022f5

Contents?: true

Size: 1.34 KB

Versions: 12

Compression:

Stored size: 1.34 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?

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

          Pilot::BuildManager.new.upload(values) # we already have the finished config

          return nil
        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/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

12 entries across 12 versions & 1 rubygems

Version Path
fastlane-1.29.2 lib/fastlane/actions/pilot.rb
fastlane-1.29.1 lib/fastlane/actions/pilot.rb
fastlane-1.29.0 lib/fastlane/actions/pilot.rb
fastlane-1.28.0 lib/fastlane/actions/pilot.rb
fastlane-1.27.0 lib/fastlane/actions/pilot.rb
fastlane-1.26.0 lib/fastlane/actions/pilot.rb
fastlane-1.25.1 lib/fastlane/actions/pilot.rb
fastlane-1.25.0 lib/fastlane/actions/pilot.rb
fastlane-1.24.0 lib/fastlane/actions/pilot.rb
fastlane-1.23.0 lib/fastlane/actions/pilot.rb
fastlane-1.22.0 lib/fastlane/actions/pilot.rb
fastlane-1.21.0 lib/fastlane/actions/pilot.rb