Sha256: da00f544a9ae2ef02c0ca4fe48c6da2f784458c2fc5329b4a42bb9ff4faa9f70

Contents?: true

Size: 1.36 KB

Versions: 37

Compression:

Stored size: 1.36 KB

Contents

module Fastlane
  module Actions
    module SharedValues
      CERT_FILE_PATH = :CERT_FILE_PATH
      CERT_CERTIFICATE_ID = :CERT_CERTIFICATE_ID
    end

    class CertAction < Action
      def self.run(params)
        require 'cert'

        return if Helper.test?

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

        begin
          Cert.config = params # we alread have the finished config

          Cert::Runner.new.launch
          cert_file_path = ENV["CER_FILE_PATH"]
          certificate_id = ENV["CER_CERTIFICATE_ID"]
          Actions.lane_context[SharedValues::CERT_FILE_PATH] = cert_file_path
          Actions.lane_context[SharedValues::CERT_CERTIFICATE_ID] = certificate_id

          UI.success("Use signing certificate '#{certificate_id}' from now on!")

          ENV["SIGH_CERTIFICATE_ID"] = certificate_id # for further use in the sigh action
        ensure
          FastlaneCore::UpdateChecker.show_update_status('cert', Cert::VERSION)
        end
      end

      def self.description
        "Fetch or generate the latest available code signing identity"
      end

      def self.available_options
        require 'cert'
        Cert::Options.available_options
      end

      def self.author
        "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/cert.rb
fastlane-1.103.0 lib/fastlane/actions/cert.rb
fastlane-1.102.0 lib/fastlane/actions/cert.rb
fastlane-1.101.0 lib/fastlane/actions/cert.rb
fastlane-1.100.0 lib/fastlane/actions/cert.rb
fastlane-1.99.0 lib/fastlane/actions/cert.rb
fastlane-1.98.0 lib/fastlane/actions/cert.rb
fastlane-1.97.2 lib/fastlane/actions/cert.rb
fastlane-1.97.1 lib/fastlane/actions/cert.rb
fastlane-1.97.0 lib/fastlane/actions/cert.rb
fastlane-1.96.0 lib/fastlane/actions/cert.rb
fastlane-1.95.0 lib/fastlane/actions/cert.rb
fastlane-1.94.1 lib/fastlane/actions/cert.rb
fastlane-1.94.0 lib/fastlane/actions/cert.rb
fastlane-1.93.1 lib/fastlane/actions/cert.rb
fastlane-1.93.0 lib/fastlane/actions/cert.rb
fastlane-1.92.0 lib/fastlane/actions/cert.rb
fastlane-1.92.0.beta2 lib/fastlane/actions/cert.rb
fastlane-1.92.0.beta1 lib/fastlane/actions/cert.rb
fastlane-1.91.0 lib/fastlane/actions/cert.rb