Sha256: 94121252312ecb1f3049bf6de5b6cfae60ace97a6a3f8b16d011e4a45dc57683

Contents?: true

Size: 1.71 KB

Versions: 189

Compression:

Stored size: 1.71 KB

Contents

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

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

        define_profile_type(params)
      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'

        UI.message("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/fastlane/tree/master/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

      def self.example_code
        [
          'match(type: "appstore", app_identifier: "tools.fastlane.app")',
          'match(type: "development", readonly: true)',
          'match(app_identifier: ["tools.fastlane.app", "tools.fastlane.sleepy"])'
        ]
      end

      def self.category
        :code_signing
      end
    end
  end
end

Version data entries

189 entries across 189 versions & 1 rubygems

Version Path
fastlane-2.38.0.beta.20170612010035 fastlane/lib/fastlane/actions/match.rb
fastlane-2.38.0.beta.20170611010050 fastlane/lib/fastlane/actions/match.rb
fastlane-2.38.0.beta.20170610010032 fastlane/lib/fastlane/actions/match.rb
fastlane-2.38.0.beta.20170609010035 fastlane/lib/fastlane/actions/match.rb
fastlane-2.38.0.beta.20170608010030 fastlane/lib/fastlane/actions/match.rb
fastlane-2.38.0.beta.20170607010024 fastlane/lib/fastlane/actions/match.rb
fastlane-2.38.0.beta.20170606010029 fastlane/lib/fastlane/actions/match.rb
fastlane-2.37.0 fastlane/lib/fastlane/actions/match.rb
fastlane-2.37.0.beta.20170605010054 fastlane/lib/fastlane/actions/match.rb
fastlane-2.37.0.beta.20170604010021 fastlane/lib/fastlane/actions/match.rb
fastlane-2.37.0.beta.20170603010102 fastlane/lib/fastlane/actions/match.rb
fastlane-2.37.0.beta.20170602010027 fastlane/lib/fastlane/actions/match.rb
fastlane-2.37.0.beta.20170601010043 fastlane/lib/fastlane/actions/match.rb
fastlane-2.36.0 fastlane/lib/fastlane/actions/match.rb
fastlane-2.36.0.beta.20170531010050 fastlane/lib/fastlane/actions/match.rb
fastlane-2.36.0.beta.20170530010040 fastlane/lib/fastlane/actions/match.rb
fastlane-2.36.0.beta.20170529010025 fastlane/lib/fastlane/actions/match.rb
fastlane-2.36.0.beta.20170528010028 fastlane/lib/fastlane/actions/match.rb
fastlane-2.36.0.beta.20170527010029 fastlane/lib/fastlane/actions/match.rb
fastlane-2.35.1 fastlane/lib/fastlane/actions/match.rb