class Capsium::Registry::Remote
A read-only static registry behind an https base URL (any static host: GitHub Pages, S3, nginx). index.json and .cap files are fetched over net/http with redirect following and timeouts; plain http is accepted for loopback hosts only (local development).
Constants
- LOOPBACK_NETWORKS
- MAX_REDIRECTS
- OPEN_TIMEOUT
- READ_TIMEOUT
Attributes
base_url
[R]
String
Public Class Methods
(String base_url) → void
Source
# File lib/capsium/registry/remote.rb, line 25 def initialize(base_url) super() @base_url = base_url.to_s.sub(%r{/+\z}, "") validate_scheme!(request_uri(INDEX_FILE)) end
Calls superclass method
Capsium::Registry::new
Public Instance Methods
() → String
Source
# File lib/capsium/registry/remote.rb, line 31 def location = base_url