Class: Fastlane::Actions::MatchAction

Inherits:
Fastlane::Action show all
Defined in:
lib/fastlane/actions/match.rb

Documentation collapse

Class Method Summary collapse

Methods inherited from Fastlane::Action

action_name, author, sh, step_text

Class Method Details

.authorsObject



54
55
56
# File 'lib/fastlane/actions/match.rb', line 54

def self.authors
  ["KrauseFx"]
end

.available_optionsObject



42
43
44
45
# File 'lib/fastlane/actions/match.rb', line 42

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

.define_profile_type(values) ⇒ Object



19
20
21
22
23
24
25
26
27
28
# File 'lib/fastlane/actions/match.rb', line 19

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

.descriptionObject



34
35
36
# File 'lib/fastlane/actions/match.rb', line 34

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

.detailsObject



38
39
40
# File 'lib/fastlane/actions/match.rb', line 38

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

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


58
59
60
# File 'lib/fastlane/actions/match.rb', line 58

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

.outputObject



47
48
49
# File 'lib/fastlane/actions/match.rb', line 47

def self.output
  []
end

.return_valueObject



51
52
# File 'lib/fastlane/actions/match.rb', line 51

def self.return_value
end

.run(params) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/fastlane/actions/match.rb', line 4

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