From 4ed1c4ef581cb780a4b6e2da7cb4e8243b20a370 Mon Sep 17 00:00:00 2001 From: Fred Hebert Date: Tue, 11 Nov 2014 00:28:05 +0000 Subject: Allow to forcibly overwrite files with templates --- src/rebar_prv_new.erl | 29 ++++++++++++++++++++--------- src/rebar_templater.erl | 48 ++++++++++++++++++++++++------------------------ 2 files changed, 44 insertions(+), 33 deletions(-) (limited to 'src') diff --git a/src/rebar_prv_new.erl b/src/rebar_prv_new.erl index e22625c..93adeb4 100644 --- a/src/rebar_prv_new.erl +++ b/src/rebar_prv_new.erl @@ -17,14 +17,17 @@ -spec init(rebar_state:t()) -> {ok, rebar_state:t()}. init(State) -> - State1 = rebar_state:add_provider(State, providers:create([{name, ?PROVIDER}, - {module, ?MODULE}, - {bare, false}, - {deps, ?DEPS}, - {example, "rebar new