NBPR.Artifact.Fetcher (NBPR v0.2.1)

Copy Markdown View Source

Orchestrates the fetch path.

Given build inputs and a list of artifact_sites, plans against the registered resolvers and downloads the first one to succeed. The download lands at NBPR.Artifact.download_path/1. Extraction is NBPR.Artifact.Cache's job and happens after a successful fetch.

Resolvers are statically defined for production but may be overridden via the :resolvers opt — primarily a testing affordance.

Summary

Functions

Downloads the artefact tarball to its canonical download path. Returns the path on success; raises on total failure with an aggregated error message per resolver attempted.

Functions

fetch!(inputs, sites, opts \\ [])

Downloads the artefact tarball to its canonical download path. Returns the path on success; raises on total failure with an aggregated error message per resolver attempted.