Permalink
Browse files

Move gen_event to finevt Rebar template.

All gen_X behaviors now have finX Rebar templates in this repository for
consistency. Each of these templates adhere to Finsignia Erlang/OTP
coding style guidelines. Thus the "fin" prefix.
  • Loading branch information...
mbbx6spp committed Feb 9, 2011
1 parent 0f035a3 commit b87d7b538afd9be6e4527e90dff60b48bbac9eec
Showing with 20 additions and 6 deletions.
  1. +13 −2 gen_event.erl → finevt.erl
  2. +7 −0 finevt.template
  3. +0 −4 gen_event.template
@@ -1,5 +1,5 @@
%%%' HEADER
-%%% @author {{author_name}} <{{author_name}}>
+%%% @author {{author_name}} <{{author_email}}>
%%% @copyright {{copyright_year}} {{author_name}}
%%% @doc gen_event that {{description}}
%%% @end
@@ -13,14 +13,18 @@
-ifdef(TEST).
-compile(export_all).
-endif.
+%%%.
+%%%' PUBLIC API
+%% TODO: Add public API methods here...
+
%%%.
%%%' CALLBACKS
%% @private
%% @spec init(Args0) -> {ok, Args1}
%% where
%% Args0 = Args1 = [term()]
%% @doc initializes gen_event
-init(Args) ->
+init([]) ->
{ok, Args}.
%% @private
@@ -46,3 +50,10 @@ handle_event(_Message, State) ->
%% terminates gen_event
terminate(_Args, _State) ->
ok.
+
+%%%.
+%%%' PRIVATE FUNCTIONS
+%% TODO: Add private functions here...
+
+%%%.
+%%% vim: set filetype=erlang tabstop=2 foldmarker=%%%',%%%. foldmethod=marker:
View
@@ -0,0 +1,7 @@
+{variables, [
+ {name, "mylogger"},
+ {author_name, "Susan Potter"},
+ {author_email, "me@susanpotter.net"},
+ {copyright_year, 2011}
+]}.
+{template, "finevt.erl", "src/{{name}}.erl"}.
View
@@ -1,4 +0,0 @@
-{variables, [
- {name, "mylogger"},
- {author_name, "Susan Potter <me@susanpotter.net>"}]}.
-{template, "gen_event.erl", "src/{{name}}.erl"}.

0 comments on commit b87d7b5

Please sign in to comment.