# File lib/googleauth/application_default.rb, line 68 def get_application_default scope = nil, options = {} creds = DefaultCredentials.from_env(scope, options) || DefaultCredentials.from_well_known_path(scope, options) || DefaultCredentials.from_system_default_path(scope, options) return creds unless creds.nil? unless GCECredentials.on_gce? options # Clear cache of the result of GCECredentials.on_gce? GCECredentials.unmemoize_all raise NOT_FOUND_ERROR end GCECredentials.new end