diff options
author | Dave Smith <dizzyd@dizzyd.com> | 2009-12-02 04:54:55 -0700 |
---|---|---|
committer | Dave Smith <dizzyd@dizzyd.com> | 2009-12-02 04:54:55 -0700 |
commit | a8fd5bc56fc17fd00b3fdb55b4eb8347e3ed04ef (patch) | |
tree | 22690911aed711f21326c83f6e59b9def190cb8c | |
parent | eb84f4f44354cfe881e474a4324769d655f0ce37 (diff) |
Add hooks for getting list of release modules
-rw-r--r-- | src/rebar_config.erl | 9 |
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 |