diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2014-11-11 01:27:41 +0000 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2014-11-11 01:27:41 +0000 |
commit | 392abf148122be020f3955005497d488d3f881fd (patch) | |
tree | c70c4a6b9065b0132e785dcf15b90f9833577c7f /priv/templates/release.template | |
parent | 4ed1c4ef581cb780a4b6e2da7cb4e8243b20a370 (diff) |
First unkeyed var is now 'name', appid -> name
The first variable can be unkeyed and the provider will sub in the
variable name 'name'. Additionally, the built-in templates and
documentation have been updated so that 'appid' is now 'name' and the
alternative commands are shown.
Diffstat (limited to 'priv/templates/release.template')
-rw-r--r-- | priv/templates/release.template | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/priv/templates/release.template b/priv/templates/release.template index 5e3ba1a..3539392 100644 --- a/priv/templates/release.template +++ b/priv/templates/release.template @@ -1,11 +1,11 @@ {description, "OTP Release structure for executable programs"}. {variables, [ - {appid, "myapp", "Name of the OTP release. An app with this name will also be created."}, + {name, "myapp", "Name of the OTP release. An app with this name will also be created."}, {desc, "An OTP application", "Short description of the release's main app's purpose"} ]}. -{template, "app.erl.dtl", "{{apps_dir}}/{{appid}}/src/{{appid}}_app.erl"}. -{template, "sup.erl.dtl", "{{apps_dir}}/{{appid}}/src/{{appid}}_sup.erl"}. -{template, "otp_app.app.src.dtl", "{{apps_dir}}/{{appid}}/src/{{appid}}.app.src"}. +{template, "app.erl.dtl", "{{apps_dir}}/{{name}}/src/{{name}}_app.erl"}. +{template, "sup.erl.dtl", "{{apps_dir}}/{{name}}/src/{{name}}_sup.erl"}. +{template, "otp_app.app.src.dtl", "{{apps_dir}}/{{name}}/src/{{name}}.app.src"}. {template, "rebar.config.dtl", "rebar.config"}. {template, "relx.config.dtl", "relx.config"}. {template, "sys.config.dtl", "config/sys.config"}. |