From 81e7e40c9dc5a4666742636ea4c5dfafc41508a5 Mon Sep 17 00:00:00 2001 From: Vladimir Kirillov Date: Mon, 9 Sep 2013 17:47:35 +0300 Subject: [PATCH] eflame-example --- rebar.config | 3 ++- src/active.erl | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/rebar.config b/rebar.config index 596db52..57e674d 100644 --- a/rebar.config +++ b/rebar.config @@ -1,5 +1,6 @@ {deps, [ {erlfsmon, ".*", {git, "git@github.com:proger/erlfsmon", "HEAD"}} , {rebar, ".*", {git, "git@github.com:proger/rebar", "HEAD"}} - %, {lager, ".*", {git, "git@github.com:basho/lager", {tag, "2.0.0"}}} + , {lager, ".*", {git, "git@github.com:basho/lager", {tag, "2.0.0"}}} + , {eflame, ".*", {git, "git@github.com:proger/eflame", "HEAD"}} ]}. diff --git a/src/active.erl b/src/active.erl index f480d8a..a2d3603 100644 --- a/src/active.erl +++ b/src/active.erl @@ -161,7 +161,8 @@ rebar_conf(Args) -> rebar_conf(Args, rebar_default_conf()). run_rebar(Commands, Conf) when is_list(Commands) -> {ok, Cwd} = file:get_cwd(), %%% XXX: rebar must not clobber the current directory in the future - try rebar_core:process_commands(Commands, Conf) of + %try rebar_core:process_commands(Commands, Conf) of + try eflame:apply(rebar_core, process_commands, [Commands, Conf]) of R -> R catch Err:Reason ->