summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--priv/templates/simplefsm.erl22
-rw-r--r--priv/templates/simplemod.erl2
-rw-r--r--priv/templates/simplenode.erl.script4
-rw-r--r--priv/templates/simplesrv.erl17
4 files changed, 24 insertions, 21 deletions
diff --git a/priv/templates/simplefsm.erl b/priv/templates/simplefsm.erl
index 039532c..776081e 100644
--- a/priv/templates/simplefsm.erl
+++ b/priv/templates/simplefsm.erl
@@ -12,42 +12,44 @@
%% gen_fsm Function Exports
%% ------------------------------------------------------------------
--export([init/1, state_name/2, state_name/3, handle_event/3, handle_sync_event/4, handle_info/3, terminate/3, code_change/4]).
+-export([init/1, state_name/2, state_name/3, handle_event/3,
+ handle_sync_event/4, handle_info/3, terminate/3,
+ code_change/4]).
%% ------------------------------------------------------------------
%% API Function Definitions
%% ------------------------------------------------------------------
start_link() ->
- gen_fsm:start_link({local, ?SERVER}, ?MODULE, [], []).
+ gen_fsm:start_link({local, ?SERVER}, ?MODULE, [], []).
%% ------------------------------------------------------------------
%% gen_fsm Function Definitions
%% ------------------------------------------------------------------
init(_Args) ->
- {ok, initial_state_name, initial_state}.
+ {ok, initial_state_name, initial_state}.
state_name(_Event, State) ->
- {next_state, state_name, State}.
+ {next_state, state_name, State}.
state_name(_Event, _From, State) ->
- {reply, ok, state_name, State}.
+ {reply, ok, state_name, State}.
handle_event(_Event, StateName, State) ->
- {next_state, StateName, State}.
+ {next_state, StateName, State}.
handle_sync_event(_Event, _From, StateName, State) ->
- {reply, ok, StateName, State}.
+ {reply, ok, StateName, State}.
handle_info(_Info, StateName, State) ->
- {next_state, StateName, State}.
+ {next_state, StateName, State}.
terminate(_Reason, _StateName, _State) ->
- ok.
+ ok.
code_change(_OldVsn, StateName, State, _Extra) ->
- {ok, StateName, State}.
+ {ok, StateName, State}.
%% ------------------------------------------------------------------
%% Internal Function Definitions
diff --git a/priv/templates/simplemod.erl b/priv/templates/simplemod.erl
index 2baff59..99d0196 100644
--- a/priv/templates/simplemod.erl
+++ b/priv/templates/simplemod.erl
@@ -7,4 +7,4 @@
-endif.
my_func() ->
- ok.
+ ok.
diff --git a/priv/templates/simplenode.erl.script b/priv/templates/simplenode.erl.script
index e500626..b985f23 100644
--- a/priv/templates/simplenode.erl.script
+++ b/priv/templates/simplenode.erl.script
@@ -4,7 +4,7 @@
## as escript depends on erl and in turn, erl depends on having access to a
## bootscript (start.boot). Note that this script is ONLY invoked as a side-effect
## of running escript -- the embedded node bypasses erl and uses erlexec directly
-## (as it should).
+## (as it should).
##
## Note that this script makes the assumption that there is a start_clean.boot
## file available in $ROOTDIR/release/VSN.
@@ -31,4 +31,4 @@ export ROOTDIR
export BINDIR
export PROGNAME
-exec $CMD -boot $ROOTDIR/releases/$APP_VSN/start_clean ${1+"$@"} \ No newline at end of file
+exec $CMD -boot $ROOTDIR/releases/$APP_VSN/start_clean ${1+"$@"}
diff --git a/priv/templates/simplesrv.erl b/priv/templates/simplesrv.erl
index 8db932e..a4ab77a 100644
--- a/priv/templates/simplesrv.erl
+++ b/priv/templates/simplesrv.erl
@@ -12,36 +12,37 @@
%% gen_server Function Exports
%% ------------------------------------------------------------------
--export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]).
+-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
+ terminate/2, code_change/3]).
%% ------------------------------------------------------------------
%% API Function Definitions
%% ------------------------------------------------------------------
start_link() ->
- gen_server:start_link({local, ?SERVER}, ?MODULE, [], []).
+ gen_server:start_link({local, ?SERVER}, ?MODULE, [], []).
%% ------------------------------------------------------------------
%% gen_server Function Definitions
%% ------------------------------------------------------------------
init(Args) ->
- {ok, Args}.
+ {ok, Args}.
handle_call(_Request, _From, State) ->
- {noreply, ok, State}.
+ {noreply, ok, State}.
handle_cast(_Msg, State) ->
- {noreply, State}.
+ {noreply, State}.
handle_info(_Info, State) ->
- {noreply, State}.
+ {noreply, State}.
terminate(_Reason, _State) ->
- ok.
+ ok.
code_change(_OldVsn, State, _Extra) ->
- {ok, State}.
+ {ok, State}.
%% ------------------------------------------------------------------
%% Internal Function Definitions