Class: Google::Auth::GCECredentials

Inherits:
Object
  • Object
show all
Defined in:
lib/firebase/admin/gce.rb

Overview

Patches GCECredentials to lookup the project id using the metadata service when on compute engine.

Instance Method Summary collapse

Instance Method Details

#project_idObject

The compute engine project id



14
15
16
# File 'lib/firebase/admin/gce.rb', line 14

def project_id
  @project_id ||= fetch_project_id
end