Nerves v0.8.3 Nerves.Package View Source
Defines a Nerves package struct and helper functions.
A Nerves package is a Mix application that defines the configuration for a Nerves system or Nerves toolchain. For more details, see the Nerves system documentation
Link to this section Summary
Functions
Builds the package and produces an artifact. See Nerves.Package.Artifact for more information
Produce a base16 encoded checksum for the package from the list of files and expanded folders listed in the checksum config key
Cleans the artifacts for the package providers of all packages
Takes the path to the package and returns the path to its package config
Loads the package config and parses it into a %Package{}
Starts an interactive shell with the working directory set to the package path
Determines if the artifact for a package is stale and needs to be rebuilt
Link to this section Types
Link to this section Functions
artifact(Nerves.Package.t, Nerves.Package.t) :: :ok
Builds the package and produces an artifact. See Nerves.Package.Artifact for more information.
Produce a base16 encoded checksum for the package from the list of files and expanded folders listed in the checksum config key.
Cleans the artifacts for the package providers of all packages
Takes the path to the package and returns the path to its package config.
load_config({app :: atom, path :: String.t}) :: Nerves.Package.t
Loads the package config and parses it into a %Package{}
Starts an interactive shell with the working directory set to the package path
stale?(Nerves.Package.t, Nerves.Package.t) :: boolean
Determines if the artifact for a package is stale and needs to be rebuilt.