Module rebar_app_utils

Function Index

app_src_to_app/3translates the name of the .app.src[.script] file to where its .app counterpart should be stored.
dep_to_app/7convert a dependency that has just been fetched into an app info record related to it.
expand_deps_sources/2Takes a given application app_info record along with the project.
find/2finds the proper app info record for a given app name in a list of such records.
find/3finds the proper app info record for a given app name at a given version in a list of such records.
format_error/1convert a given exception's payload into an io description.
is_app_src/1checks if a given file is .app.src file.
lint_app_info/1
parse_dep/6for a given dep, return its app info record.
parse_deps/5parses all dependencies from the root of the project.
parse_deps/6runs parse_dep/6 for a set of dependencies.
validate_application_info/1checks whether the .app file has all the required data to be valid, and cross-references it with compiled modules on disk.
validate_application_info/2checks whether the .app file has all the required data to be valid and cross-references it with compiled modules on disk.

Function Details

app_src_to_app/3

app_src_to_app(OutDir, SrcFilename, State) -> OutFilename

translates the name of the .app.src[.script] file to where its .app counterpart should be stored.

dep_to_app/7

dep_to_app(Parent, Dir, Name, Vsn, Source, IsLock, State) -> rebar_app_info:t()

convert a dependency that has just been fetched into an app info record related to it

expand_deps_sources/2

expand_deps_sources(Dep::rebar_app_info:t(), State::rebar_state:t()) -> rebar_app_info:t()

Takes a given application app_info record along with the project. If the app is a package, resolve and expand the package definition.

find/2

find(Name::binary(), Apps::[rebar_app_info:t()]) -> {ok, rebar_app_info:t()} | error

finds the proper app info record for a given app name in a list of such records.

find/3

find(Name::binary(), Vsn::binary(), Apps::[rebar_app_info:t()]) -> {ok, rebar_app_info:t()} | error

finds the proper app info record for a given app name at a given version in a list of such records.

format_error/1

format_error(Error::any()) -> iolist()

convert a given exception's payload into an io description.

is_app_src/1

is_app_src(Filename) -> any()

checks if a given file is .app.src file

lint_app_info/1

lint_app_info(AppInfo) -> any()

parse_dep/6

parse_dep(Dep, Parent, Dir, State, Locks, Level) -> rebar_app_info:t()

for a given dep, return its app info record. The function also has to choose whether to define the dep from its immediate spec (if it is a newer thing) or from the locks specified in the lockfile.

parse_deps/5

parse_deps(Dir, Deps, State, Locks, Level) -> [rebar_app_info:t()]

parses all dependencies from the root of the project

parse_deps/6

parse_deps(Parent, Dir, Deps, State, Locks, Level) -> [rebar_app_info:t()]

runs parse_dep/6 for a set of dependencies.

validate_application_info/1

validate_application_info(AppInfo::rebar_app_info:t()) -> boolean()

checks whether the .app file has all the required data to be valid, and cross-references it with compiled modules on disk

validate_application_info/2

validate_application_info(AppInfo::rebar_app_info:t(), AppDetail::list()) -> boolean()

checks whether the .app file has all the required data to be valid and cross-references it with compiled modules on disk. The app info is passed explicitly as a second argument.


Generated by EDoc