Sha256: 3c5b00eee85a583fc38501501ed852dffafa4c9b53522840573e97358f1868e7

Contents?: true

Size: 1.37 KB

Versions: 33

Compression:

Stored size: 1.37 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

          Helper.log.info("Use signing certificate '#{certificate_id}' from now on!".green)

          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

33 entries across 33 versions & 1 rubygems

Version Path
fastlane-1.66.0 lib/fastlane/actions/cert.rb
fastlane-1.65.0 lib/fastlane/actions/cert.rb
fastlane-1.64.0 lib/fastlane/actions/cert.rb
fastlane-1.63.1 lib/fastlane/actions/cert.rb
fastlane-1.63.0 lib/fastlane/actions/cert.rb
fastlane-1.62.0 lib/fastlane/actions/cert.rb
fastlane-1.61.0 lib/fastlane/actions/cert.rb
fastlane-1.60.0 lib/fastlane/actions/cert.rb
fastlane-1.59.0 lib/fastlane/actions/cert.rb
fastlane-1.58.0 lib/fastlane/actions/cert.rb
fastlane-1.57.0 lib/fastlane/actions/cert.rb
fastlane-1.56.0 lib/fastlane/actions/cert.rb
fastlane-1.55.0 lib/fastlane/actions/cert.rb
fastlane-1.54.0 lib/fastlane/actions/cert.rb
fastlane-1.53.0 lib/fastlane/actions/cert.rb
fastlane-1.52.0 lib/fastlane/actions/cert.rb
fastlane-1.51.0 lib/fastlane/actions/cert.rb
fastlane-1.50.0 lib/fastlane/actions/cert.rb
fastlane-1.49.0 lib/fastlane/actions/cert.rb
fastlane-1.48.0 lib/fastlane/actions/cert.rb