Class: Fastlane::Actions::FirebaseLoginAction

Inherits:
Action
  • Object
show all
Defined in:
lib/fastlane/plugin/wpmreleasetoolkit/actions/common/firebase_login.rb

Documentation collapse

Class Method Summary collapse

Class Method Details

.authorsObject



37
38
39
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/firebase_login.rb', line 37

def self.authors
  ['Automattic']
end

.available_optionsObject



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.available_options
  [
    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

.descriptionObject



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

.detailsObject



19
20
21
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/firebase_login.rb', line 19

def self.details
  description
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (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.(params[:key_file])
end