Nerves v0.8.0 Nerves.Package.Artifact View Source

Package artifacts are the product of compiling a package with a specific toolchain.

Link to this section 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

Link to this section 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

Link to this function env_var?(pkg) View Source
env_var?(Nerves.Package.t) :: boolean

Check to see if the artifact path is being set from the system env

Link to this function exists?(pkg, toolchain) View Source
exists?(Nerves.Package.t, Nerves.Package.t) :: boolean

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