Method: Pubilion::Config.credentials

Defined in:
lib/pubilion/config.rb

.credentialsString?

Credentials file path for access to Cloud Pub/Sub. If not set, it will try to get from environment variable GOOGLE_APPLICATION_CREDENTIALS. If not set and GOOGLE_APPLICATION_CREDENTIALS is not set, it will implicitly set by Google Cloud SDK.

Returns:

  • (String, nil)


38
39
40
# File 'lib/pubilion/config.rb', line 38

def credentials
  @credentials ||= ENV.fetch("GOOGLE_APPLICATION_CREDENTIALS", nil)
end