Nerves v0.5.0 Nerves.Package.Artifact
Package artifacts are the product of compiling a package with a specific toolchain.
Summary
Functions
Get the base dir for where an artifact for a package should be stored
The full path to the artifact
Determine the environment variable which would be set to override the path
Check to see if the artifact path is being set from the system env
Determines if an artifact exists at its artifact dir
Determines the extension for an artifact based off its type. Toolchains use xz compression
Get the artifact name
Functions
Get the base dir for where an artifact for a package should be stored.
If a package is pulled in from hex, the base dir for an artifact will point
to the NERVES_ARTIFACT_DIR or if undefined, ~/.nerves/artifacts
Packages which were obtained through other Mix SCM’s such as path will have a base_dir local to the package path
The full path to the artifact
Determine the environment variable which would be set to override the path
Check to see if the artifact path is being set from the system env
Determines if an artifact exists at its artifact dir.
Determines the extension for an artifact based off its type. Toolchains use xz compression
Get the artifact name
Requires the package and toolchain package to be supplied