class Google::Cloud::Env::ComputeMetadata
def ensure_existence timeout: nil
-
(MetadataServerNotResponding)- if we were unable to confirm
Returns:
-
(:confirmed)- if we were able to confirm connection.
Parameters:
-
timeout(Numeric, nil) -- a timeout in seconds, or nil to wait
def ensure_existence timeout: nil timeout ||= @startup_time + warmup_time - Process.clock_gettime(Process::CLOCK_MONOTONIC) timeout = 1.0 if timeout < 1.0 check_existence retry_count: nil, retry_timeout: timeout raise MetadataServerNotResponding unless @existence == :confirmed @existence end