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.66.0 lib/fastlane/actions/produce.rb
fastlane-1.65.0 lib/fastlane/actions/produce.rb
fastlane-1.64.0 lib/fastlane/actions/produce.rb
fastlane-1.63.1 lib/fastlane/actions/produce.rb
fastlane-1.63.0 lib/fastlane/actions/produce.rb
fastlane-1.62.0 lib/fastlane/actions/produce.rb
fastlane-1.61.0 lib/fastlane/actions/produce.rb
fastlane-1.60.0 lib/fastlane/actions/produce.rb
fastlane-1.59.0 lib/fastlane/actions/produce.rb
fastlane-1.58.0 lib/fastlane/actions/produce.rb
fastlane-1.57.0 lib/fastlane/actions/produce.rb
fastlane-1.56.0 lib/fastlane/actions/produce.rb
fastlane-1.55.0 lib/fastlane/actions/produce.rb
fastlane-1.54.0 lib/fastlane/actions/produce.rb
fastlane-1.53.0 lib/fastlane/actions/produce.rb
fastlane-1.52.0 lib/fastlane/actions/produce.rb
fastlane-1.51.0 lib/fastlane/actions/produce.rb
fastlane-1.50.0 lib/fastlane/actions/produce.rb
fastlane-1.49.0 lib/fastlane/actions/produce.rb
fastlane-1.48.0 lib/fastlane/actions/produce.rb