Sha256: e10e6d47da7ce0b9c8258168897a8c4cc9e30a52eb97d491494876048c9f1ae6

Contents?: true

Size: 1.59 KB

Versions: 20

Compression:

Stored size: 1.59 KB

Contents

module Fastlane
  module Actions
    class MatchAction < Action
      def self.run(params)
        require 'match'

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

          params.load_configuration_file("Matchfile")
          Match::Runner.new.run(params)

          define_profile_type(params)
        ensure
          FastlaneCore::UpdateChecker.show_update_status('match', Match::VERSION)
        end
      end

      def self.define_profile_type(values)
        profile_type = "app-store"
        profile_type = "ad-hoc" if values[:type] == 'adhoc'
        profile_type = "development" if values[:type] == 'development'
        profile_type = "enterprise" if values[:type] == 'enterprise'

        Helper.log.info "Setting Provisioning Profile type to '#{profile_type}'"

        Actions.lane_context[SharedValues::SIGH_PROFILE_TYPE] = profile_type
      end

      #####################################################
      # @!group Documentation
      #####################################################

      def self.description
        "Easily sync your certificates and profiles across your team using git"
      end

      def self.details
        "More details https://github.com/fastlane/match"
      end

      def self.available_options
        require 'match'
        Match::Options.available_options
      end

      def self.output
        []
      end

      def self.return_value
      end

      def self.authors
        ["KrauseFx"]
      end

      def self.is_supported?(platform)
        platform == :ios
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

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