summaryrefslogtreecommitdiff
path: root/src/rebar_app_info.erl
diff options
context:
space:
mode:
authorTristan Sloughter <tristan.sloughter@gmail.com>2015-01-12 12:30:24 -0600
committerTristan Sloughter <tristan.sloughter@gmail.com>2015-01-12 12:30:24 -0600
commit7238f2e7e86018807ba4ad840e0647f381190a7a (patch)
tree4b2b2f910f83be162e83c4c1a9761157592f7d4f /src/rebar_app_info.erl
parent47269b1a8194e13a5a3de0f829cecaef85bf8419 (diff)
parent407362c074ffbc280443e35ed95f4eb2abce0a78 (diff)
Merge pull request #96 from tsloughter/profiles
replace single profile atom in providers with list of profiles
Diffstat (limited to 'src/rebar_app_info.erl')
-rw-r--r--src/rebar_app_info.erl18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/rebar_app_info.erl b/src/rebar_app_info.erl
index 4fdb14c..ce23c22 100644
--- a/src/rebar_app_info.erl
+++ b/src/rebar_app_info.erl
@@ -20,8 +20,8 @@
ebin_dir/1,
applications/1,
applications/2,
- profile/1,
- profile/2,
+ profiles/1,
+ profiles/2,
deps/1,
deps/2,
dep_level/1,
@@ -45,7 +45,7 @@
app_details=[] :: list(),
applications=[] :: list(),
deps=[] :: list(),
- profile=default :: atom(),
+ profiles=[default] :: atom(),
dep_level=0 :: integer(),
dir :: file:name(),
source :: string() | tuple() | undefined,
@@ -172,13 +172,13 @@ 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 profiles(t()) -> list().
+profiles(#app_info_t{profiles=Profiles}) ->
+ Profiles.
--spec profile(t(), list()) -> t().
-profile(AppInfo=#app_info_t{}, Profile) ->
- AppInfo#app_info_t{profile=Profile}.
+-spec profiles(t(), list()) -> t().
+profiles(AppInfo=#app_info_t{}, Profiles) ->
+ AppInfo#app_info_t{profiles=Profiles}.
-spec deps(t()) -> list().
deps(#app_info_t{deps=Deps}) ->