From ec4e8058989e1e57ce8d547de8c687567c323755 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Fri, 8 Jan 2010 12:16:57 -0700 Subject: Adding sketch of functionality for creating a reltool node from template --- src/rebar_templater.erl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/rebar_templater.erl b/src/rebar_templater.erl index 329df7c..675f4bf 100644 --- a/src/rebar_templater.erl +++ b/src/rebar_templater.erl @@ -27,6 +27,7 @@ -module(rebar_templater). -export(['create-app'/2, + 'create-node'/2, create/2]). -include("rebar.hrl"). @@ -42,6 +43,11 @@ rebar_config:set_global(template, "simpleapp"), create(Config, File). +'create-node'(Config, File) -> + %% Alias for create w/ template=simplenode + rebar_config:set_global(template, "simplenode"), + create(Config, File). + create(_Config, _) -> %% Load a list of all the files in the escript -- cache it in the pdict %% since we'll potentially need to walk it several times over the course -- cgit v1.1