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
35 36 37 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/firebase_login.rb', line 35 def self. ['Automattic'] end |
.available_options ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/firebase_login.rb', line 21 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
13 14 15 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/firebase_login.rb', line 13 def self.description 'Logs the local machine into Google Cloud using the provided key file' end |
.details ⇒ Object
17 18 19 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/firebase_login.rb', line 17 def self.details description end |
.is_supported?(platform) ⇒ Boolean
39 40 41 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/firebase_login.rb', line 39 def self.is_supported?(platform) true end |
.run(params) ⇒ Object
6 7 8 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/firebase_login.rb', line 6 def self.run(params) Fastlane::FirebaseAccount.activate_service_account_with_key_file(params[:key_file]) end |