summaryrefslogtreecommitdiff
path: root/src/rebar_templater.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_templater.erl')
-rw-r--r--src/rebar_templater.erl6
1 files changed, 6 insertions, 0 deletions
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