Nerves v0.9.2 Nerves.Artifact.Provider behaviour View Source
Defines the Nerves package provider behaviour
A package provider is a module that can take package source and produce artifacts.
Link to this section Summary
Link to this section Callbacks
Link to this callback
archive(package, toolchain, opts)
View Source
archive(package :: Nerves.Package.t(), toolchain :: atom(), opts :: term()) :: {:ok, path :: String.t()} | {:error, reason :: term()}
Link to this callback
build(package, toolchain, opts)
View Source
build(package :: Nerves.Package.t(), toolchain :: atom(), opts :: term()) :: {:ok, build_path :: String.t()} | {:error, reason :: term()}
Link to this callback
clean(package)
View Source
clean(package :: Nerves.Package.t()) :: :ok | {:error, reason :: term()}