View Source Mash.Helpers (mash v0.3.1)
Helpers that provide a simple way to write Mash configs.
Summary
Functions
Create a run function for a job that executes a mix task with name task_name
and the arguments args
.
Restore a cache file.
Save a cache file as a gzipped tar archive. We use tar because it preserves timestamps which are used by Elixir for determining "staleness" of compilation.
Create a run function which executes the script/binary named command
with the arguments args
.
Functions
Create a run function for a job that executes a mix task with name task_name
and the arguments args
.
Available opts:
:env
-- a list of {key, value} pairs that will be used as environment variables.
Restore a cache file.
name
is the base name of the archive to save (default: ".mash-cache")
Save a cache file as a gzipped tar archive. We use tar because it preserves timestamps which are used by Elixir for determining "staleness" of compilation.
name
is the base name of the archive to save (default:".mash-cache"
)files
is the list of files/directories to save in the archive (default:["deps", "_build"]
)
Create a run function which executes the script/binary named command
with the arguments args
.
Available opts:
:env
-- a list of {key, value} pairs that will be used as environment variables.