Sha256: f566ae49ac0f0ba191c4b1885292c4c24b8fe319aef34ff7527dd892a2eb4b18

Contents?: true

Size: 1.57 KB

Versions: 35

Compression:

Stored size: 1.57 KB

Contents

module Fastlane
  module Actions
    module SharedValues
      PRODUCE_APPLE_ID = :PRODUCE_APPLE_ID
    end

    class ProduceAction < Action
      def self.run(params)
        require 'produce'
        require 'produce/options'

        return if Helper.test?

        begin
          FastlaneCore::UpdateChecker.start_looking_for_update('produce')
          Produce.config = params # we alread have the finished config

          Dir.chdir(FastlaneFolder.path || Dir.pwd) do
            # This should be executed in the fastlane folder
            apple_id = Produce::Manager.start_producing.to_s

            Actions.lane_context[SharedValues::PRODUCE_APPLE_ID] = apple_id
            ENV['PRODUCE_APPLE_ID'] = apple_id
          end
        ensure
          FastlaneCore::UpdateChecker.show_update_status('produce', Produce::VERSION)
        end
      end

      def self.description
        "Creates the given application on iTC and the Dev Portal if necessary"
      end

      def details
        [
          'For more information about produce, visit its GitHub page:',
          'https://github.com/fastlane/produce'
        ].join(' ')
      end

      def self.available_options
        require 'produce'
        require 'produce/options'
        Produce::Options.available_options
      end

      def self.output
        [
          ['PRODUCE_APPLE_ID', 'The Apple ID of the newly created app. You probably need it for `deliver`']
        ]
      end

      def self.author
        "KrauseFx"
      end

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

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
fastlane-1.33.0 lib/fastlane/actions/produce.rb
fastlane-1.32.4 lib/fastlane/actions/produce.rb
fastlane-1.32.3 lib/fastlane/actions/produce.rb
fastlane-1.32.2 lib/fastlane/actions/produce.rb
fastlane-1.32.1 lib/fastlane/actions/produce.rb
fastlane-1.32.0 lib/fastlane/actions/produce.rb
fastlane-1.31.0 lib/fastlane/actions/produce.rb
fastlane-1.30.2 lib/fastlane/actions/produce.rb
fastlane-1.30.1 lib/fastlane/actions/produce.rb
fastlane-1.30.0 lib/fastlane/actions/produce.rb
fastlane-1.29.2 lib/fastlane/actions/produce.rb
fastlane-1.29.1 lib/fastlane/actions/produce.rb
fastlane-1.29.0 lib/fastlane/actions/produce.rb
fastlane-1.28.0 lib/fastlane/actions/produce.rb
fastlane-1.27.0 lib/fastlane/actions/produce.rb
fastlane-1.26.0 lib/fastlane/actions/produce.rb
fastlane-1.25.1 lib/fastlane/actions/produce.rb
fastlane-1.25.0 lib/fastlane/actions/produce.rb
fastlane-1.24.0 lib/fastlane/actions/produce.rb
fastlane-1.23.0 lib/fastlane/actions/produce.rb