diff options
author | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-08-15 22:04:15 -0500 |
---|---|---|
committer | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-08-15 22:04:15 -0500 |
commit | 642897867eddf00a7b1a9bf3ca99c0851b287db0 (patch) | |
tree | bdd4e1fbc953aff73b811cee5e4cc1d2790e803f /src/rebar_app_info.erl | |
parent | e49e59d09a73d4a27e1bd18ee59dd1b9ac6522bb (diff) | |
parent | be4ae19fecbade303978920701e9e3f8b38d3c54 (diff) |
Merge pull request #712 from tsloughter/tree_provider
Tree provider
Diffstat (limited to 'src/rebar_app_info.erl')
-rw-r--r-- | src/rebar_app_info.erl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/rebar_app_info.erl b/src/rebar_app_info.erl index 6962c5a..7e31f6d 100644 --- a/src/rebar_app_info.erl +++ b/src/rebar_app_info.erl @@ -17,6 +17,8 @@ app_file/2, app_details/1, app_details/2, + parent/1, + parent/2, original_vsn/1, original_vsn/2, ebin_dir/1, @@ -54,6 +56,7 @@ app_file :: file:filename_all() | undefined, config :: rebar_state:t() | undefined, original_vsn :: binary() | string() | undefined, + parent :: binary() | root, app_details=[] :: list(), applications=[] :: list(), deps=[] :: list(), @@ -203,6 +206,13 @@ app_details(#app_info_t{app_details=AppDetails}) -> app_details(AppInfo=#app_info_t{}, AppDetails) -> AppInfo#app_info_t{app_details=AppDetails}. +parent(#app_info_t{parent=Parent}) -> + Parent. + +-spec parent(t(), binary() | root) -> t(). +parent(AppInfo=#app_info_t{}, Parent) -> + AppInfo#app_info_t{parent=Parent}. + -spec original_vsn(t()) -> string(). original_vsn(#app_info_t{original_vsn=Vsn}) -> Vsn. |