diff options
author | Tristan Sloughter <t@crashfast.com> | 2014-09-17 08:52:49 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2014-09-17 08:52:49 -0500 |
commit | 48769e75c224ccd8e04df250b86b50540270ce9a (patch) | |
tree | d4a094d9c82b73a9d57594b366f92fd32d6e7ff7 /priv/templates/sup.erl.dtl | |
parent | 7d43d0e092be4fff0496e8c3522fbd526074b37f (diff) |
wip: move to erlydtl for rebar templates
Diffstat (limited to 'priv/templates/sup.erl.dtl')
-rw-r--r-- | priv/templates/sup.erl.dtl | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/priv/templates/sup.erl.dtl b/priv/templates/sup.erl.dtl new file mode 100644 index 0000000..3dd5b12 --- /dev/null +++ b/priv/templates/sup.erl.dtl @@ -0,0 +1,35 @@ +%%%------------------------------------------------------------------- +%% @doc {{appid}} top level supervisor. +%% @end +%%%------------------------------------------------------------------- + +-module({{appid}}_sup). + +-behaviour(supervisor). + +%% API +-export([start_link/0]). + +%% Supervisor callbacks +-export([init/1]). + +-define(SERVER, ?MODULE). + +%%==================================================================== +%% API functions +%%==================================================================== + +start_link() -> + supervisor:start_link({local, ?SERVER}, ?MODULE, []). + +%%==================================================================== +%% Supervisor callbacks +%%==================================================================== + +%% Child :: {Id,StartFunc,Restart,Shutdown,Type,Modules} +init([]) -> + {ok, { {one_for_all, 0, 1}, []} }. + +%%==================================================================== +%% Internal functions +%%==================================================================== |