Sha256: 0a34d30bbabe9f5bf44e24ca74c6440be226e5e1ad590b22bdcf31036d911a4a

Contents?: true

Size: 1.87 KB

Versions: 404

Compression:

Stored size: 1.87 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?

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

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

      def self.details
        [
          "**Important**: It is recommended to use [match](https://github.com/fastlane/fastlane/tree/master/match) according to the [codesigning.guide](https://codesigning.guide) for generating and maintaining your certificates. Use _cert_ directly only if you want full control over what's going on and know more about codesigning.",
          "Use this action to download the latest code signing identity"
        ].join("\n")
      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

      def self.example_code
        [
          'cert',
          'cert(
            development: true,
            username: "user@email.com"
          )'
        ]
      end

      def self.category
        :code_signing
      end
    end
  end
end

Version data entries

404 entries across 404 versions & 1 rubygems

Version Path
fastlane-2.63.0.beta.20171028010003 fastlane/lib/fastlane/actions/cert.rb
fastlane-2.63.0.beta.20171027010003 fastlane/lib/fastlane/actions/cert.rb
fastlane-2.63.0.beta.20171026010003 fastlane/lib/fastlane/actions/cert.rb
fastlane-2.63.0.beta.20171025010003 fastlane/lib/fastlane/actions/cert.rb
fastlane-2.63.0.beta.20171024010003 fastlane/lib/fastlane/actions/cert.rb
fastlane-2.62.1 fastlane/lib/fastlane/actions/cert.rb
fastlane-2.63.0.beta.20171023010003 fastlane/lib/fastlane/actions/cert.rb
fastlane-2.63.0.beta.20171022010003 fastlane/lib/fastlane/actions/cert.rb
fastlane-2.63.0.beta.20171021010003 fastlane/lib/fastlane/actions/cert.rb
fastlane-2.63.0.beta.20171020010003 fastlane/lib/fastlane/actions/cert.rb
fastlane-2.63.0.beta.20171019010003 fastlane/lib/fastlane/actions/cert.rb
fastlane-2.63.0.beta.20171018010003 fastlane/lib/fastlane/actions/cert.rb
fastlane-2.62.0 fastlane/lib/fastlane/actions/cert.rb
fastlane-2.62.0.beta.20171017010003 fastlane/lib/fastlane/actions/cert.rb
fastlane-2.62.0.beta.20171016010004 fastlane/lib/fastlane/actions/cert.rb
fastlane-2.62.0.beta.20171015010003 fastlane/lib/fastlane/actions/cert.rb
fastlane-2.62.0.beta.20171014010003 fastlane/lib/fastlane/actions/cert.rb
fastlane-2.62.0.beta.20171011010003 fastlane/lib/fastlane/actions/cert.rb
fastlane-2.62.0.beta.20171010010004 fastlane/lib/fastlane/actions/cert.rb
fastlane-2.61.0 fastlane/lib/fastlane/actions/cert.rb