Class: Fastlane::Actions::FirebaseLoginAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::FirebaseLoginAction
- Defined in:
- lib/fastlane/plugin/wpmreleasetoolkit/actions/common/firebase_login.rb
Documentation collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(platform) ⇒ Boolean
Class Method Summary collapse
Class Method Details
.authors ⇒ Object
37 38 39 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/firebase_login.rb', line 37 def self. ['Automattic'] end |
.available_options ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/firebase_login.rb', line 23 def self. [ FastlaneCore::ConfigItem.new( key: :key_file, description: 'The key file used to authorize with Google Cloud', type: String, verify_block: proc do |value| UI.user_error!('The `:key_file` parameter is required') if value.empty? UI.user_error!("No Google Cloud Key file found at: #{value}") unless File.exist?(value) end ), ] end |
.description ⇒ Object
15 16 17 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/firebase_login.rb', line 15 def self.description 'Logs the local machine into Google Cloud using the provided key file' end |
.details ⇒ Object
19 20 21 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/firebase_login.rb', line 19 def self.details description end |
.is_supported?(platform) ⇒ Boolean
41 42 43 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/firebase_login.rb', line 41 def self.is_supported?(platform) true end |
.run(params) ⇒ Object
8 9 10 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/firebase_login.rb', line 8 def self.run(params) Fastlane::FirebaseAccount.activate_service_account_with_key_file(params[:key_file]) end |