diff options
Diffstat (limited to 'src/rebar_app_info.erl')
-rw-r--r-- | src/rebar_app_info.erl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/rebar_app_info.erl b/src/rebar_app_info.erl index 008bfd2..44394b3 100644 --- a/src/rebar_app_info.erl +++ b/src/rebar_app_info.erl @@ -21,6 +21,8 @@ ebin_dir/1, deps/1, deps/2, + dep_level/1, + dep_level/2, dir/1, dir/2, source/1, @@ -37,6 +39,7 @@ original_vsn :: string(), app_details=[] :: list(), deps=[] :: list(), + dep_level :: integer(), dir :: file:name(), source :: string() | undefined, valid :: boolean()}). @@ -166,6 +169,12 @@ deps(#app_info_t{deps=Deps}) -> deps(AppInfo=#app_info_t{}, Deps) -> AppInfo#app_info_t{deps=Deps}. +dep_level(AppInfo=#app_info_t{}, Level) -> + AppInfo#app_info_t{dep_level=Level}. + +dep_level(AppInfo=#app_info_t{dep_level=Level}) -> + Level. + -spec dir(t()) -> file:name(). dir(#app_info_t{dir=Dir}) -> Dir. |