Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove wtf erlapp

  • Loading branch information...
commit b72b84bffefe8e17be4064b0c280eae74a51e0c2 1 parent a8a0fdf
@cloudhead cloudhead authored
View
3  .gitmodules
@@ -1,3 +0,0 @@
-[submodule "sync"]
- path = erlapp.dev/sync
- url = https://github.com/rustyio/sync.git
View
45 erlapp.Makefile
@@ -1,45 +0,0 @@
-
-REBAR = rebar
-APP = {{appid}}
-
-default: compile
-
-all: deps compile sync
-
-compile:
- $(REBAR) compile
-
-deps:
- $(REBAR) get-deps
-
-clean:
- $(REBAR) clean
-
-generate:
- $(REBAR) generate
- chmod u+x rel/$(APP)/bin/$(APP)
-
-sync:
- cd dev/sync && make && cd -
-
-distclean: clean
- $(REBAR) delete-deps
-
-console:
- rel/$(APP)/bin/$(APP) console -pa ../../ebin
-
-rebuild:
- $(REBAR) clean compile generate
- chmod u+x rel/$(APP)/bin/$(APP)
-
-eunit:
- $(REBAR) skip_deps=true eunit
-
-docs: deps
- $(REBAR) skip_deps=true doc
-
-dialyzer: compile
- @dialyzer -Wno_return -c apps/$(APP)/ebin
-
-.PHONY: deps
-
View
18 erlapp.app.src
@@ -1,18 +0,0 @@
-{application, {{appid}}, [
- {description, ""},
- {vsn, "1"},
- {registered, []},
- {modules, [
- {{appid}}_app,
- {{appid}}_sup,
- {{appid}}_server
- ]},
- {applications, [
- kernel,
- stdlib
- ]},
- {mod, {
- {{appid}}_app, []
- }},
- {env, []}
-]}.
1  erlapp.dev/sync
@@ -1 +0,0 @@
-Subproject commit ce6edadc0f1acb60cc826e4b50b06d67784c46ff
View
17 erlapp.erl
@@ -1,17 +0,0 @@
-%%
-%% {{appid}}.erl
-%% {{appid}} entry point
-%%
--module({{appid}}).
-
--export([start/0, start_link/0, stop/0]).
-
-start_link() ->
- {{appid}}_sup:start_link().
-
-start() ->
- application:start({{appid}}).
-
-stop() ->
- application:stop({{appid}}).
-
View
7 erlapp.gitignore
@@ -1,7 +0,0 @@
-*.beam
-.eunit
-deps/*
-apps/{{appid}}/ebin
-dev/*
-rel/{{nodeid}}
-
View
1  erlapp.hrl
@@ -1 +0,0 @@
--define(PRINT(Var), io:format("~p:~p: ~p = ~p~n", [?MODULE, ?LINE, ??Var, Var])).
View
9 erlapp.rebar.config
@@ -1,9 +0,0 @@
-{sub_dirs, ["rel"]}.
-{lib_dirs, ["deps"]}.
-{deps, [
- % {misultin, ".*", {git, "git://github.com/ostinelli/misultin", {branch, "master"}}},
- % {json, ".*", {git, "git://github.com/davisp/eep0018", {branch, "master"}}},
- % {webmachine, ".*", {git, "git://github.com/basho/webmachine", {branch, "master"}}},
- % {riakc, ".*", {git, "git://github.com/basho/riak-erlang-client", {branch, "master"}}}
-]}.
-
View
21 erlapp.start.args
@@ -1,21 +0,0 @@
-
-# Start SASL
--boot start_sasl
-
-# Start main application
--s {{appid}}
-
-# Start 'sync' script, for auto-reloading
--s sync
-
-# Node name
--name {{appid}}@127.0.0.1
-
-# Cookie name
--setcookie riak
-
-# Kernel polling
-+K true
-
-# 4 async threads
-+A 4
View
9 erlapp.start.sh
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-echo Starting {{appid}} with development console..
-
-exec erl -pa $PWD/ebin\
- -pa $PWD/deps/*/ebin\
- -pa $PWD/dev/*/ebin\
- -args_file `dirname $0`/start.args
-
View
23 erlapp.template
@@ -1,23 +0,0 @@
-{variables, [{appid, "myapp"}]}.
-
-{template, "erlapp.app.src", "src/{{appid}}.app.src"}.
-{template, "erlapp_app.erl", "src/{{appid}}_app.erl"}.
-{template, "erlapp_server.erl", "src/{{appid}}_server.erl"}.
-{template, "erlapp_sup.erl", "src/{{appid}}_sup.erl"}.
-{template, "erlapp.erl", "src/{{appid}}.erl"}.
-{template, "erlapp.hrl", "src/{{appid}}.hrl"}.
-{template, "erlapp.rebar.config", "rebar.config"}.
-{template, "erlapp.start.args", "dev/start.args"}.
-{template, "erlapp.start.sh", "dev/start"}.
-{template, "erlapp.Makefile", "Makefile"}.
-{template, "erlapp.gitignore", ".gitignore"}.
-{template, "README", "README"}.
-
-{chmod, 8#0744, "dev/start"}.
-{copy, "erlapp.dev", "dev"}.
-
-{dir, "deps"}.
-{dir, "src"}.
-{dir, "priv"}.
-{dir, "ebin"}.
-
View
21 erlapp_app.erl
@@ -1,21 +0,0 @@
-%%
-%% {{appid}}_app.erl
-%% {{appid}} application
-%%
--module({{appid}}_app).
-
--behaviour(application).
-
-%% Application callbacks
--export([start/2, stop/1]).
-
-%% ~~~~~~~~~~~~~~~~~~~~~
-%% Application callbacks
-%% ~~~~~~~~~~~~~~~~~~~~~
-
-start(_StartType, _StartArgs) ->
- {{appid}}_sup:start_link().
-
-stop(_State) ->
- ok.
-
View
53 erlapp_server.erl
@@ -1,53 +0,0 @@
-%%
-%% {{appid}}_server.erl
-%% {{appid}} server
-%%
--module({{appid}}_server).
--behaviour(gen_server).
--define(SERVER, ?MODULE).
-
-%% ~~~~~~~~~~~~~~~~~~~~
-%% API Function Exports
-%% ~~~~~~~~~~~~~~~~~~~~
-
--export([start_link/0]).
-
-%% ~~~~~~~~~~~~~~~~~~~~~~~~~~~
-%% gen_server Function Exports
-%% ~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
--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 Function Definitions
-%% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-init(Args) ->
- {ok, Args}.
-
-handle_call(_Request, _From, State) ->
- {noreply, ok, State}.
-
-handle_cast(_Msg, State) ->
- {noreply, State}.
-
-handle_info(_Info, State) ->
- {noreply, State}.
-
-terminate(_Reason, _State) ->
- ok.
-
-code_change(_OldVsn, State, _Extra) ->
- {ok, State}.
-
-%% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-%% Internal Function Definitions
-%% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
View
32 erlapp_sup.erl
@@ -1,32 +0,0 @@
-%%
-%% {{appid}}_sup.erl
-%% {{appid}} supervisor
-%%
--module({{appid}}_sup).
-
--behaviour(supervisor).
-
-%% API
--export([start_link/0]).
-
-%% Supervisor callbacks
--export([init/1]).
-
-%% Helper macro for declaring children of supervisor
--define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}).
-
-%% ~~~~~~~~~~~~~
-%% API functions
-%% ~~~~~~~~~~~~~
-
-start_link() ->
- supervisor:start_link({local, ?MODULE}, ?MODULE, []).
-
-%% ~~~~~~~~~~~~~~~~~~~~
-%% Supervisor callbacks
-%% ~~~~~~~~~~~~~~~~~~~~
-
-init([]) ->
- Server = ?CHILD({{appid}}_server, worker),
- {ok, { {one_for_one, 5, 10}, [Server]} }.
-
Please sign in to comment.
Something went wrong with that request. Please try again.