diff options
Diffstat (limited to 'priv')
-rw-r--r-- | priv/templates/app.erl | 4 | ||||
-rw-r--r-- | priv/templates/app.template | 2 | ||||
-rw-r--r-- | priv/templates/cmake.template | 2 | ||||
-rw-r--r-- | priv/templates/escript.template | 2 | ||||
-rw-r--r-- | priv/templates/escript_mod.erl | 2 | ||||
-rw-r--r-- | priv/templates/escript_rebar.config | 6 | ||||
-rw-r--r-- | priv/templates/lib.template | 2 | ||||
-rw-r--r-- | priv/templates/mod.erl | 2 | ||||
-rw-r--r-- | priv/templates/otp_app.app.src | 2 | ||||
-rw-r--r-- | priv/templates/otp_lib.app.src | 2 | ||||
-rw-r--r-- | priv/templates/plugin.erl | 4 | ||||
-rw-r--r-- | priv/templates/plugin.template | 2 | ||||
-rw-r--r-- | priv/templates/relx_rebar.config | 2 | ||||
-rw-r--r-- | priv/templates/sup.erl | 2 |
14 files changed, 18 insertions, 18 deletions
diff --git a/priv/templates/app.erl b/priv/templates/app.erl index 83eb9a3..2e7b909 100644 --- a/priv/templates/app.erl +++ b/priv/templates/app.erl @@ -3,7 +3,7 @@ %% @end %%%------------------------------------------------------------------- --module({{name}}_app). +-module('{{name}}_app'). -behaviour(application). @@ -16,7 +16,7 @@ %%==================================================================== start(_StartType, _StartArgs) -> - {{name}}_sup:start_link(). + '{{name}}_sup':start_link(). %%-------------------------------------------------------------------- stop(_State) -> diff --git a/priv/templates/app.template b/priv/templates/app.template index 4087e5e..d0bebd7 100644 --- a/priv/templates/app.template +++ b/priv/templates/app.template @@ -1,4 +1,4 @@ -{description, "OTP Application"}. +{description, "Complete OTP Application structure."}. {variables, [ {name, "mylib", "Name of the OTP application"}, {desc, "An OTP application", "Short description of the app"} diff --git a/priv/templates/cmake.template b/priv/templates/cmake.template index 2874c8a..227f5fa 100644 --- a/priv/templates/cmake.template +++ b/priv/templates/cmake.template @@ -1,2 +1,2 @@ -{description, "Makefile for building C/C++ in c_src"}. +{description, "Standalone Makefile for building C/C++ in c_src"}. {template, "Makefile", "c_src/Makefile"}. diff --git a/priv/templates/escript.template b/priv/templates/escript.template index c0afd3c..e41c313 100644 --- a/priv/templates/escript.template +++ b/priv/templates/escript.template @@ -1,4 +1,4 @@ -{description, "Escriptized application"}. +{description, "Complete escriptized application structure"}. {variables, [ {name, "mylib", "Name of the OTP application to be escriptized"}, {desc, "An escript", "Short description of the project"} diff --git a/priv/templates/escript_mod.erl b/priv/templates/escript_mod.erl index f8a779b..dd2feb8 100644 --- a/priv/templates/escript_mod.erl +++ b/priv/templates/escript_mod.erl @@ -1,4 +1,4 @@ --module({{name}}). +-module('{{name}}'). %% API exports -export([main/1]). diff --git a/priv/templates/escript_rebar.config b/priv/templates/escript_rebar.config index 196f835..c0a3301 100644 --- a/priv/templates/escript_rebar.config +++ b/priv/templates/escript_rebar.config @@ -2,9 +2,9 @@ {deps, []}. {escript_incl_apps, - [{{name}}]}. -{escript_top_level_app, {{name}}}. -{escript_name, {{name}}}. + ['{{name}}']}. +{escript_top_level_app, '{{name}}'}. +{escript_name, '{{name}}'}. {escript_emu_args, "%%! +sbtu +A0\n"}. %% Profiles diff --git a/priv/templates/lib.template b/priv/templates/lib.template index cbb3672..4d06901 100644 --- a/priv/templates/lib.template +++ b/priv/templates/lib.template @@ -1,4 +1,4 @@ -{description, "OTP Library application (no processes)"}. +{description, "Complete OTP Library application (no processes) structure"}. {variables, [ {name, "mylib", "Name of the OTP library application"}, {desc, "An OTP library", "Short description of the app"} diff --git a/priv/templates/mod.erl b/priv/templates/mod.erl index 2f5e09e..208307e 100644 --- a/priv/templates/mod.erl +++ b/priv/templates/mod.erl @@ -1,4 +1,4 @@ --module({{name}}). +-module('{{name}}'). %% API exports -export([]). diff --git a/priv/templates/otp_app.app.src b/priv/templates/otp_app.app.src index d5ea3d2..9ad7478 100644 --- a/priv/templates/otp_app.app.src +++ b/priv/templates/otp_app.app.src @@ -1,4 +1,4 @@ -{application, {{name}}, +{application, '{{name}}', [{description, "{{desc}}"}, {vsn, "0.1.0"}, {registered, []}, diff --git a/priv/templates/otp_lib.app.src b/priv/templates/otp_lib.app.src index 6af7640..3f4b56b 100644 --- a/priv/templates/otp_lib.app.src +++ b/priv/templates/otp_lib.app.src @@ -1,4 +1,4 @@ -{application, {{name}}, +{application, '{{name}}', [{description, "{{desc}}"}, {vsn, "0.1.0"}, {registered, []}, diff --git a/priv/templates/plugin.erl b/priv/templates/plugin.erl index abf4648..018dd0e 100644 --- a/priv/templates/plugin.erl +++ b/priv/templates/plugin.erl @@ -1,9 +1,9 @@ --module({{name}}). +-module('{{name}}'). -behaviour(provider). -export([init/1, do/1, format_error/1]). --define(PROVIDER, {{name}}). +-define(PROVIDER, '{{name}}'). -define(DEPS, [app_discovery]). %% =================================================================== diff --git a/priv/templates/plugin.template b/priv/templates/plugin.template index 0181bd2..811be0b 100644 --- a/priv/templates/plugin.template +++ b/priv/templates/plugin.template @@ -1,4 +1,4 @@ -{description, "Rebar3 plugin"}. +{description, "Rebar3 plugin project structure"}. {variables, [ {name, "myplugin", "Name of the plugin"}, {desc, "A rebar plugin", "Short description of the plugin's purpose"} diff --git a/priv/templates/relx_rebar.config b/priv/templates/relx_rebar.config index e7505eb..da32819 100644 --- a/priv/templates/relx_rebar.config +++ b/priv/templates/relx_rebar.config @@ -2,7 +2,7 @@ {deps, []}. {relx, [{release, {'{{name}}', "0.1.0"}, - [{{name}}, + ['{{name}}', sasl]}, {sys_config, "./config/sys.config"}, diff --git a/priv/templates/sup.erl b/priv/templates/sup.erl index a2e7209..cd9192a 100644 --- a/priv/templates/sup.erl +++ b/priv/templates/sup.erl @@ -3,7 +3,7 @@ %% @end %%%------------------------------------------------------------------- --module({{name}}_sup). +-module('{{name}}_sup'). -behaviour(supervisor). |