summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Smith <dizzyd@dizzyd.com>2009-12-02 04:54:55 -0700
committerDave Smith <dizzyd@dizzyd.com>2009-12-02 04:54:55 -0700
commita8fd5bc56fc17fd00b3fdb55b4eb8347e3ed04ef (patch)
tree22690911aed711f21326c83f6e59b9def190cb8c
parenteb84f4f44354cfe881e474a4324769d655f0ce37 (diff)
Add hooks for getting list of release modules
-rw-r--r--src/rebar_config.erl9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/rebar_config.erl b/src/rebar_config.erl
index 5cf15ef..199461c 100644
--- a/src/rebar_config.erl
+++ b/src/rebar_config.erl
@@ -60,12 +60,9 @@ new(Dir) ->
get_modules(Config, app) ->
- case orddict:find(app_modules, Config#config.opts) of
- error ->
- [];
- {ok, Modules} ->
- Modules
- end.
+ get_list(Config, app_modules, []);
+get_modules(Config, rel) ->
+ get_list(Config, rel_modules, []).
get_list(Config, Key, Default) ->
case orddict:find(Key, Config#config.opts) of