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



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

def self.authors
  ['Automattic']
end

.available_optionsObject



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



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

.detailsObject



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

def self.details
  description
end

.is_supported?(platform) ⇒ Boolean

Returns:

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