Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

Gem::ConfigFile#credential_store_read_failed_for?

credential_store_read_failed_for?(host)

True when a read for host failed rather than finding nothing. Whether the store holds a key for it is unknowable once the read fails, which is the point: a caller that would otherwise fall through to a key belonging to a different host has to treat “unknown” differently from “absent”.