diff options
author | Dave Smith <dizzyd@dizzyd.com> | 2010-01-08 12:16:57 -0700 |
---|---|---|
committer | Dave Smith <dizzyd@dizzyd.com> | 2010-01-08 12:16:57 -0700 |
commit | ec4e8058989e1e57ce8d547de8c687567c323755 (patch) | |
tree | 17bf6ceba225316109fe1539e2b3ddfb9cabf755 /src | |
parent | 8c4f35a294aad7e950c233612f9ea286fe6228ca (diff) |
Adding sketch of functionality for creating a reltool node from template
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_templater.erl | 6 |
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 |