method
email_from_metadata_server
rails latest stable - Class:
ActiveStorage::Service::GCSService
email_from_metadata_server()private
No documentation available.
# File activestorage/lib/active_storage/service/gcs_service.rb, line 203
def email_from_metadata_server
env = Google::Cloud.env
raise MetadataServerNotFoundError if !env.metadata?
email = env.lookup_metadata("instance", "service-accounts/default/email")
email.presence or raise MetadataServerError
end