grisp_tools_util (grisp_tools v2.8.0)

View Source

Summary

Functions

build_hash(_)

build_hash_format(Index)

build_overlay(App, AppDir, Platform, Versions)

cdn_path(_, State)

copy_directory(State0, Src, DestRoot, DestRel)

copy_directory(State0, Src, DestRoot, DestRel, Opts)

copy_file(Root, File, Context)

copy_file(Root, File, Context, FileInfo)

deploy_overlay(App, AppDir, Platform, Versions)

ensure_dir(File)

env(Key)

event(State0, Events)

event_with_result(State0, Events)

exec(Handler, State, Args)

filelib_ensure_path(Path)

find_files(Dir, Regex)

format_term(Term)

-spec format_term(term()) -> binary().

Formats a term into a UTF8 encoded binary that can be later read by file:consult/1. If the binaries are strings, they are supposed to be encoded in UTF8.

iterate(State, Iterations, StateKey, Fun)

make_relative(Path)

make_relative(BasePath, Path)

maybe_relative(Path, MaxDoubleDots)

maybe_relative(BasePath, Path, MaxDoubleDots)

merge_build_config(C1, C2)

mv(From, To)

otp_checkout_dir(Root, Platform)

otp_package_cache(Platform)

package_cache_file(State)

package_cache_meta(State)

package_cache_meta(State, Meta)

package_cache_temp(State)

package_name(_)

paths(Root, Platform, _, Hash, CustomBuild)

pipe(State, Actions)

pipe(State, Actions, CleanupActions)

read_file(_, Context)

rm(File)

shell(State, Command)

shell(State, Command, Opts)

source_hash(Apps, Board)

weave(S0, Steps)

weave(State, Actions, CleanupActions)

with_file(File, Opts, Fun)

write_file(Root, File, Content)

write_file(Root, _, Content, FileInfo)