--- Revision 333638663461 +++ Revision 376136316561 @@ -1,32 +1,1 @@ -%% @author author -%% @copyright YYYY author. - -%% @doc TEMPLATE. - --module(myapp). --author('author '). --export([start/0, stop/0]). - -ensure_started(App) -> - case application:start(App) of - ok -> - ok; - {error, {already_started, App}} -> - ok - end. - -%% @spec start() -> ok -%% @doc Start the myapp server. -start() -> - myapp_deps:ensure(), - ensure_started(crypto), - ensure_started(mnesia), - application:start(myapp). - -%% @spec stop() -> ok -%% @doc Stop the myapp server. -stop() -> - Res = application:stop(myapp), - application:stop(mnesia), - application:stop(crypto), - Res. +Great atricle, thank you again for writing.