Skip to content

Commit 21b3812

Browse files
committed
add force_nuke_dist_certs param to allow nuking of distribution and in-house enterprise certs in non-interactive mode
1 parent 065f846 commit 21b3812

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

match/lib/match/nuke.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def spaceship_login
105105
Spaceship::ConnectAPI.login(params[:username], use_portal: true, use_tunes: false, portal_team_id: params[:team_id], team_name: params[:team_name])
106106
end
107107

108-
if Spaceship::ConnectAPI.client.in_house? && (type == "distribution" || type == "enterprise")
108+
if Spaceship::ConnectAPI.client.in_house? && (type == "distribution" || type == "enterprise") && !params[:force_nuke_dist_certs]
109109
UI.error("---")
110110
UI.error("⚠️ Warning: This seems to be an Enterprise account!")
111111
unless self.safe_remove_certs

match/lib/match/options.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,11 @@ def self.available_options
297297
description: "Disables confirmation prompts during nuke, answering them with yes",
298298
type: Boolean,
299299
default_value: false),
300+
FastlaneCore::ConfigItem.new(key: :force_nuke_dist_certs,
301+
env_name: "MATCH_FORCE_NUKE_DIST_CERTS",
302+
description: "Force nuke distribution and enterprise in-house certs. This will cause apps built with these certs to stop working",
303+
type: Boolean,
304+
default_value: false),
300305
FastlaneCore::ConfigItem.new(key: :safe_remove_certs,
301306
env_name: "MATCH_SAFE_REMOVE_CERTS",
302307
description: "Remove certs from repository during nuke without revoking them on the developer portal",

0 commit comments

Comments
 (0)