Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: gar1t/e2v2
base: a371784989
...
head fork: gar1t/e2v2
compare: 62ad9cb3ff
  • 2 commits
  • 15 files changed
  • 0 commit comments
  • 1 contributor
View
12 doc/todo.rst
@@ -0,0 +1,12 @@
+=======
+ To Do
+=======
+
+===============
+ Documentation
+===============
+
+* Highlight Erlang lack of "magic" -- i.e. "things that happens mysteriously"
+ * Behaviors are just compile time checks
+ * No global state
+ * No implicit function calls
View
0  templates/e2app/.gitignore → templates/app_skel/.gitignore
File renamed without changes
View
0  templates/e2app/Makefile → templates/app_skel/Makefile
File renamed without changes
View
0  templates/e2app/rebar → templates/app_skel/rebar
File renamed without changes
View
0  templates/e2app/rebar.config → templates/app_skel/rebar.config
File renamed without changes
View
0  templates/e2app/src/Makefile → templates/app_skel/src/Makefile
File renamed without changes
View
0  templates/e2app/src/e2app.erl → templates/app_skel/src/api.erl
File renamed without changes
View
0  templates/e2app/src/e2app_app.erl → templates/app_skel/src/app.erl
File renamed without changes
View
0  templates/e2app/src/e2app.app.src → templates/app_skel/src/app.src
File renamed without changes
View
16 templates/e2app.template
@@ -1,12 +1,12 @@
%% -*- erlang -*-
{variables, [{appid, ""}, {dest, ""}, {version, "1"}]}.
{dir, "{{dest}}"}.
-{template, "e2app/src/e2app.app.src", "{{dest}}/src/{{appid}}.app.src"}.
-{template, "e2app/src/e2app_app.erl", "{{dest}}/src/{{appid}}_app.erl"}.
-{template, "e2app/src/e2app.erl", "{{dest}}/src/{{appid}}.erl"}.
-{file, "e2app/.gitignore", "{{dest}}/.gitignore"}.
-{file, "e2app/Makefile", "{{dest}}/Makefile"}.
-{file, "e2app/src/Makefile", "{{dest}}/src/Makefile"}.
-{file, "e2app/rebar.config", "{{dest}}/rebar.config"}.
-{file, "e2app/rebar", "{{dest}}/rebar"}.
+{template, "app_skel/src/app.src", "{{dest}}/src/{{appid}}.app.src"}.
+{template, "app_skel/src/app.erl", "{{dest}}/src/{{appid}}_app.erl"}.
+{template, "app_skel/src/api.erl", "{{dest}}/src/{{appid}}.erl"}.
+{file, "app_skel/.gitignore", "{{dest}}/.gitignore"}.
+{file, "app_skel/Makefile", "{{dest}}/Makefile"}.
+{file, "app_skel/src/Makefile", "{{dest}}/src/Makefile"}.
+{file, "app_skel/rebar.config", "{{dest}}/rebar.config"}.
+{file, "app_skel/rebar", "{{dest}}/rebar"}.
{chmod, 8#755, "{{dest}}/rebar"}.
View
2  templates/e2service.template
@@ -1,3 +1,3 @@
%% -*- erlang -*-
{variables, [{module, ""}, {dest, ""}]}.
-{template, "modules/e2service.erl", "{{dest}}/src/{{module}}.erl"}.
+{template, "modules/service.erl", "{{dest}}/src/{{module}}.erl"}.
View
4 templates/e2task.template
@@ -1,4 +1,4 @@
%% -*- erlang -*-
{variables, [{module, ""}, {task_module, "{{module}}"}, {dest, ""}]}.
-{template, "modules/e2task.erl", "{{dest}}/src/{{module}}.erl"}.
-{template, "modules/e2task_sup.erl", "{{dest}}/src/{{module}}_sup.erl"}.
+{template, "modules/task.erl", "{{dest}}/src/{{module}}.erl"}.
+{template, "modules/task_sup.erl", "{{dest}}/src/{{module}}_sup.erl"}.
View
5 templates/modules/e2service.erl → templates/modules/service.erl
@@ -4,7 +4,7 @@
-export([start_link/0, ping/0]).
--export([init/1, handle_msg/3]).
+-export([init/1, handle_msg/3, terminate/2]).
-record(state, {}).
@@ -28,6 +28,9 @@ init([]) ->
handle_msg(ping, _From, State) ->
{reply, pong, State}.
+terminate(_Reason, _State) ->
+ ok.
+
%%%===================================================================
%%% Internal functions
%%%===================================================================
View
0  templates/modules/e2task.erl → templates/modules/task.erl
File renamed without changes
View
0  templates/modules/e2task_sup.erl → templates/modules/task_sup.erl
File renamed without changes

No commit comments for this range

Something went wrong with that request. Please try again.