Class: Fastlane::Actions::FirebaseAppDistributionDeleteGroupAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::FirebaseAppDistributionDeleteGroupAction
- Extended by:
- Fastlane::Auth::FirebaseAppDistributionAuthClient, Helper::FirebaseAppDistributionHelper
- Defined in:
- lib/fastlane/plugin/firebase_app_distribution/actions/firebase_app_distribution_delete_group_action.rb
Constant Summary
Constants included from Fastlane::Auth::FirebaseAppDistributionAuthClient
Fastlane::Auth::FirebaseAppDistributionAuthClient::CLIENT_ID, Fastlane::Auth::FirebaseAppDistributionAuthClient::CLIENT_SECRET, Fastlane::Auth::FirebaseAppDistributionAuthClient::REDACTION_CHARACTER, Fastlane::Auth::FirebaseAppDistributionAuthClient::REDACTION_EXPOSED_LENGTH, Fastlane::Auth::FirebaseAppDistributionAuthClient::SCOPE, Fastlane::Auth::FirebaseAppDistributionAuthClient::TOKEN_CREDENTIAL_URI
Class Method Summary collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
-
.details ⇒ Object
supports markdown.
- .is_supported?(platform) ⇒ Boolean
- .run(params) ⇒ Object
Methods included from Fastlane::Auth::FirebaseAppDistributionAuthClient
Methods included from Helper::FirebaseAppDistributionHelper
app_name_from_app_id, binary_type_from_path, blank?, get_ios_app_id_from_archive_plist, get_value_from_value_or_file, parse_plist, present?, string_to_array
Class Method Details
.authors ⇒ Object
35 36 37 |
# File 'lib/fastlane/plugin/firebase_app_distribution/actions/firebase_app_distribution_delete_group_action.rb', line 35 def self. ["Garry Jeromson"] end |
.available_options ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/fastlane/plugin/firebase_app_distribution/actions/firebase_app_distribution_delete_group_action.rb', line 44 def self. [ FastlaneCore::ConfigItem.new(key: :project_number, env_name: "FIREBASEAPPDISTRO_PROJECT_NUMBER", description: "Your Firebase project number. You can find the project number in the Firebase console, on the General Settings page", type: Integer, optional: false), FastlaneCore::ConfigItem.new(key: :alias, env_name: "FIREBASEAPPDISTRO_DELETE_GROUP_ALIAS", description: "Alias of the group to be deleted", optional: false, type: String), FastlaneCore::ConfigItem.new(key: :service_credentials_file, description: "Path to Google service credentials file", optional: true, type: String), FastlaneCore::ConfigItem.new(key: :firebase_cli_token, description: "Auth token generated using the Firebase CLI's login:ci command", optional: true, type: String), FastlaneCore::ConfigItem.new(key: :debug, description: "Print verbose debug output", optional: true, default_value: false, is_string: false) ] end |
.description ⇒ Object
31 32 33 |
# File 'lib/fastlane/plugin/firebase_app_distribution/actions/firebase_app_distribution_delete_group_action.rb', line 31 def self.description "Delete a tester group" end |
.details ⇒ Object
supports markdown.
40 41 42 |
# File 'lib/fastlane/plugin/firebase_app_distribution/actions/firebase_app_distribution_delete_group_action.rb', line 40 def self.details "Delete a tester group" end |
.is_supported?(platform) ⇒ Boolean
72 73 74 |
# File 'lib/fastlane/plugin/firebase_app_distribution/actions/firebase_app_distribution_delete_group_action.rb', line 72 def self.is_supported?(platform) true end |
.run(params) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/fastlane/plugin/firebase_app_distribution/actions/firebase_app_distribution_delete_group_action.rb', line 13 def self.run(params) auth_token = fetch_auth_token(params[:service_credentials_file], params[:firebase_cli_token]) fad_api_client = Client::FirebaseAppDistributionApiClient.new(auth_token, params[:debug]) if blank?(params[:alias]) UI.user_error!("Must specify `alias`.") end project_number = params[:project_number] group_alias = params[:alias] UI.("⏳ Deleting tester group '#{group_alias}' in project #{project_number}...") fad_api_client.delete_group(project_number, group_alias) UI.success("✅ Group deleted successfully.") end |