summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2017-08-15 14:16:51 -0400
committerGitHub <noreply@github.com>2017-08-15 14:16:51 -0400
commit957caae90f2df65bbb847234abb170f753fcbc02 (patch)
tree0c618322f23e150042fbe8ac17f1bd9a9f35f054
parenta878755b66f53eaeaffd9e1cb3ec63d5ea306ab5 (diff)
parent98354eb8548a304212b3be035a0658d3b4435ea2 (diff)
Merge pull request #1602 from ferd/alias-release-to-umbrella
Add an alias of 'release' template as 'umbrella'
-rw-r--r--priv/templates/umbrella.template15
1 files changed, 15 insertions, 0 deletions
diff --git a/priv/templates/umbrella.template b/priv/templates/umbrella.template
new file mode 100644
index 0000000..a2855d3
--- /dev/null
+++ b/priv/templates/umbrella.template
@@ -0,0 +1,15 @@
+{description, "OTP structure for executable programs (alias of 'release' template)"}.
+{variables, [
+ {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", "{{name}}/{{apps_dir}}/{{name}}/src/{{name}}_app.erl"}.
+{template, "sup.erl", "{{name}}/{{apps_dir}}/{{name}}/src/{{name}}_sup.erl"}.
+{template, "otp_app.app.src", "{{name}}/{{apps_dir}}/{{name}}/src/{{name}}.app.src"}.
+{template, "relx_rebar.config", "{{name}}/rebar.config"}.
+{template, "sys.config", "{{name}}/config/sys.config"}.
+{template, "vm.args", "{{name}}/config/vm.args"}.
+{template, "gitignore", "{{name}}/.gitignore"}.
+{template, "LICENSE", "{{name}}/LICENSE"}.
+{template, "README.md", "{{name}}/README.md"}.
+