mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Add hooks for getting list of release modules
This commit is contained in:
parent
eb84f4f443
commit
a8fd5bc56f
1 changed files with 3 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue