diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2014-12-16 14:53:26 -0500 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2014-12-16 14:53:26 -0500 |
commit | b5500c7301eb6017d956b041daf4001d7b6cb3ff (patch) | |
tree | b698186b6cfe8d64c3a8951748f838a734932998 /src/rebar_app_info.erl | |
parent | 0672fc45b797b9a496e5bf7797d2b7168f16ca42 (diff) | |
parent | 3998dfb049f8e48c4595b72913837a0b8095a0fe (diff) |
Merge pull request #56 from tsloughter/profile_deps
rewrite profiles
Diffstat (limited to 'src/rebar_app_info.erl')
-rw-r--r-- | src/rebar_app_info.erl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/rebar_app_info.erl b/src/rebar_app_info.erl index f790cd3..3854ea7 100644 --- a/src/rebar_app_info.erl +++ b/src/rebar_app_info.erl @@ -20,6 +20,8 @@ ebin_dir/1, applications/1, applications/2, + profile/1, + profile/2, deps/1, deps/2, dep_level/1, @@ -41,6 +43,7 @@ app_details=[] :: list(), applications=[] :: list(), deps=[] :: list(), + profile=default :: atom(), dep_level=0 :: integer(), dir :: file:name(), source :: string() | tuple() | undefined, @@ -166,6 +169,14 @@ applications(#app_info_t{applications=Applications}) -> applications(AppInfo=#app_info_t{}, Applications) -> AppInfo#app_info_t{applications=Applications}. +-spec profile(t()) -> list(). +profile(#app_info_t{profile=Profile}) -> + Profile. + +-spec profile(t(), list()) -> t(). +profile(AppInfo=#app_info_t{}, Profile) -> + AppInfo#app_info_t{profile=Profile}. + -spec deps(t()) -> list(). deps(#app_info_t{deps=Deps}) -> Deps. |