Sha256: 3c94affafe8e1aecf06849a51974114506157b7f6fe5121e26966dfd79d0e1fa

Contents?: true

Size: 1.5 KB

Versions: 47

Compression:

Stored size: 1.5 KB

Contents

module Fastlane
  module Actions
    module SharedValues
      PRODUCE_APPLE_ID = :PRODUCE_APPLE_ID
    end

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

        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'
        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

47 entries across 47 versions & 1 rubygems

Version Path
fastlane-1.47.0 lib/fastlane/actions/produce.rb
fastlane-1.46.1 lib/fastlane/actions/produce.rb
fastlane-1.46.0 lib/fastlane/actions/produce.rb
fastlane-1.45.0 lib/fastlane/actions/produce.rb
fastlane-1.44.0 lib/fastlane/actions/produce.rb
fastlane-1.43.0 lib/fastlane/actions/produce.rb
fastlane-1.42.0 lib/fastlane/actions/produce.rb
fastlane-1.41.1 lib/fastlane/actions/produce.rb
fastlane-1.41.0 lib/fastlane/actions/produce.rb
fastlane-1.40.0 lib/fastlane/actions/produce.rb
fastlane-1.39.0 lib/fastlane/actions/produce.rb
fastlane-1.38.1 lib/fastlane/actions/produce.rb
fastlane-1.38.0 lib/fastlane/actions/produce.rb
fastlane-1.37.0 lib/fastlane/actions/produce.rb
fastlane-1.36.4 lib/fastlane/actions/produce.rb
fastlane-1.36.3 lib/fastlane/actions/produce.rb
fastlane-1.36.2 lib/fastlane/actions/produce.rb
fastlane-1.36.1 lib/fastlane/actions/produce.rb
fastlane-1.36.0 lib/fastlane/actions/produce.rb
fastlane-1.35.0 lib/fastlane/actions/produce.rb