method

email_from_metadata_server

Importance_0
v8.1.1 - Show latest stable - 0 notes - Class: GCSService
email_from_metadata_server() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.