lib/match/nuke.rb in match-0.10.0 vs lib/match/nuke.rb in match-0.11.0

- old
+ new

@@ -25,16 +25,18 @@ if params[:readonly] UI.user_error!("`match nuke` doesn't delete anything when running with --readonly enabled") end if (self.certs + self.profiles + self.files).count > 0 - UI.error "---" - UI.error "Are you sure you want to completely delete and revoke all the" - UI.error "certificates and provisioning profiles listed above? (y/n)" - UI.error "Warning: By nuking distribution, both App Store and Ad Hoc profiles will be deleted" if type == "distribution" - UI.error "Warning: The :app_identifier value will be ignored - this will delete all profiles for all your apps!" if had_app_identifier - UI.error "---" - if agree("(y/n)", true) + unless params[:skip_confirmation] + UI.error "---" + UI.error "Are you sure you want to completely delete and revoke all the" + UI.error "certificates and provisioning profiles listed above? (y/n)" + UI.error "Warning: By nuking distribution, both App Store and Ad Hoc profiles will be deleted" if type == "distribution" + UI.error "Warning: The :app_identifier value will be ignored - this will delete all profiles for all your apps!" if had_app_identifier + UI.error "---" + end + if params[:skip_confirmation] || agree("(y/n)", true) nuke_it_now! UI.success "Successfully cleaned your account ♻️" else UI.success "Cancelled nuking #thanks 🏠 👨 ‍👩 ‍👧" end