class

Crinit::AssetFetcher

Inherits Reference < Object

Implements the 4-tier smart fallback resolution pipeline for remote assets.

Constants

BLOCKED_HOSTNAMES = {"169.254.169.254", "metadata.google.internal", "instance-data", "localhost"}
MAX_ASSET_SIZE = (50 * 1024) * 1024

Constructors

new(config : Config, template_dir : Path, engine : TokenEngine, cache : CacheStore = CacheStore.from_config(config), allow_local : Bool = false)
Source

Instance methods

allow_local?
Source
cache
Source
config
Source
engine
Source
resolve_all(assets : Array(RemoteAsset)) : Nil
Source
resolve_asset(asset : RemoteAsset) : Nil
Source
template_dir
Source