diff options
author | omarkj <omarkj@gmail.com> | 2015-05-13 16:43:53 -0700 |
---|---|---|
committer | omarkj <omarkj@gmail.com> | 2015-05-13 16:43:53 -0700 |
commit | fe19e4f891db3807cb289ff50f8b29a9fa1487e3 (patch) | |
tree | e0a6f83c045aed14c9bd94c61f95d33741a4a39e /priv | |
parent | 192e85aafa366a014600b6989480fa0b612b0408 (diff) |
Quote atoms to allow names to have dashes.
Diffstat (limited to 'priv')
-rw-r--r-- | priv/templates/app.erl | 4 | ||||
-rw-r--r-- | priv/templates/escript_mod.erl | 2 | ||||
-rw-r--r-- | priv/templates/escript_rebar.config | 6 | ||||
-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/relx_rebar.config | 2 | ||||
-rw-r--r-- | priv/templates/sup.erl | 2 |
9 files changed, 13 insertions, 13 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/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/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/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). |