Class: Fastlane::Actions::MatchNukeAction

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

Constant Summary

Constants inherited from Fastlane::Action

Fastlane::Action::AVAILABLE_CATEGORIES, Fastlane::Action::RETURN_TYPES

Documentation collapse

Class Method Summary collapse

Methods inherited from Fastlane::Action

action_name, author, deprecated_notes, lane_context, method_missing, other_action, output, return_type, return_value, sample_return_value, shell_out_should_use_bundle_exec?, step_text

Class Method Details

.authorsObject



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

def self.authors
  ["crazymanish"]
end

.available_optionsObject



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

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

.categoryObject



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

def self.category
  :code_signing
end

.descriptionObject



20
21
22
# File 'fastlane/lib/fastlane/actions/match_nuke.rb', line 20

def self.description
  "Easily nuke your certificate and provisioning profiles (via _match_)"
end

.detailsObject



24
25
26
27
28
29
30
31
32
# File 'fastlane/lib/fastlane/actions/match_nuke.rb', line 24

def self.details
  [
    "Use the match_nuke action to revoke your certificates and provisioning profiles.",
    "Don't worry, apps that are already available in the App Store / TestFlight will still work.",
    "Builds distributed via Ad Hoc or Enterprise will be disabled after nuking your account, so you'll have to re-upload a new build.",
    "After clearing your account you'll start from a clean state, and you can run match to generate your certificates and profiles again.",
    "More information: https://docs.fastlane.tools/actions/match/"
  ].join("\n")
end

.example_codeObject



43
44
45
46
47
48
# File 'fastlane/lib/fastlane/actions/match_nuke.rb', line 43

def self.example_code
  [
    'match_nuke(type: "development")', # See all other options https://github.com/fastlane/fastlane/blob/master/match/lib/match/module.rb#L23
    'match_nuke(type: "development", api_key: app_store_connect_api_key)'
  ]
end

.is_supported?(platform) ⇒ Boolean

Returns:



39
40
41
# File 'fastlane/lib/fastlane/actions/match_nuke.rb', line 39

def self.is_supported?(platform)
  [:ios, :mac].include?(platform)
end

.run(params) ⇒ Object



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

def self.run(params)
  require 'match'

  params.load_configuration_file("Matchfile")
  params[:api_key] ||= Actions.lane_context[SharedValues::APP_STORE_CONNECT_API_KEY]

  cert_type = Match.cert_type_sym(params[:type])
  UI.important("Going to revoke your '#{cert_type}' certificate type and provisioning profiles")

  Match::Nuke.new.run(params, type: cert_type)
end