Module rlx_util

Trivial utility file to help handle common tasks.

Copyright © (C) 2012 Erlware, LLC.

Authors: Eric Merritt (ericbmerritt@gmail.com).

Description

Trivial utility file to help handle common tasks

Function Index

error_reason/1get the reason for a particular relx error.
get_code_paths/2Generates the correct set of code paths for the system.
indent/1ident to the level specified.
is_error/1check to see if the value is a relx error.
is_sasl_gte/0
list_search/2
load_file/3
os_type/1
parse_vsn/1
parsed_vsn_lte/2
release_output_dir/2
render/2
sh/1
template_files/0
to_binary/1
to_string/1

Function Details

error_reason/1

error_reason(X1::relx:error()) -> any()

get the reason for a particular relx error

get_code_paths/2

get_code_paths(Release::rlx_release:t(), OutDir::file:name()) -> [file:filename_all()]

Generates the correct set of code paths for the system.

indent/1

indent(Amount::non_neg_integer()) -> iolist()

ident to the level specified

is_error/1

is_error(X1::relx:error() | any()) -> boolean()

check to see if the value is a relx error

is_sasl_gte/0

is_sasl_gte() -> any()

list_search/2

list_search(Pred, Tail) -> any()

load_file/3

load_file(Files, X2, Name) -> any()

os_type/1

os_type(State) -> any()

parse_vsn/1

parse_vsn(Vsn::string()) -> {{integer(), integer(), integer()}, {string(), string()}}

parsed_vsn_lte/2

parsed_vsn_lte(VsnA, VsnB) -> any()

release_output_dir/2

release_output_dir(State::rlx_state:t(), Release::rlx_release:t()) -> string()

render/2

render(Template::binary() | iolist(), Data::proplists:proplist()) -> {ok, binary()} | {error, render_failed}

sh/1

sh(Command0) -> any()

template_files/0

template_files() -> any()

to_binary/1

to_binary(String::iolist() | binary()) -> binary()

to_string/1

to_string(Binary::binary() | string() | atom()) -> string()


Generated by EDoc