Module: MonoVM::Whois::Paths
- Defined in:
- lib/monovm/whois/paths.rb
Overview
Locations of the data files shipped inside the gem.
Constant Summary collapse
- ROOT =
lib/monovm/whois/paths.rb-> the gem root. File.("../../..", __dir__)
- DATA_DIR =
File.join(ROOT, "data")
- WHOIS_SERVERS =
Curated WHOIS server list: TLD -> port 43 host plus availability markers.
File.join(DATA_DIR, "whois_servers.json")
- RDAP_BOOTSTRAP =
Snapshot of the IANA RDAP bootstrap registry (RFC 7484). Refresh with
rake data:refresh_rdap. File.join(DATA_DIR, "rdap_bootstrap.json")
- OVERRIDE_ENV_VAR =
Environment variable pointing at an override file, so a deployment can correct a stale registry entry without waiting for a gem release.
"MONOVM_WHOIS_DEFINITIONS"
Class Method Summary collapse
-
.override ⇒ String?
The override file path, if one is configured.
Class Method Details
.override ⇒ String?
24 25 26 27 |
# File 'lib/monovm/whois/paths.rb', line 24 def override path = ENV.fetch(OVERRIDE_ENV_VAR, nil) path.nil? || path.strip.empty? ? nil : path.strip end |