Commits

Yuriy Netesov  committed 15adad6 Draft

fixed exports

  • Participants
  • Parent commits c219c68

Comments (0)

Files changed (9)

 	make compile
 
 compile:
+	./rebar compile
+
+test:
 	./rebar compile eunit
 
-test:
-	make eunit
+clean:
+	./rebar clean
 
 run:
-	erl -pa apps/kissbang/ebin -boot start_sasl -s kissbang	
+	erl -pa apps/kissbang/ebin -boot start_sasl -s kissbang
+
+generate:
+	./rebar -v generate	
 ###	make run

File apps/kissbang/src/auth_srv.erl

 -record(authinfo, {guid, login, password}).
 
 init_db() ->
+    mnesia:stop(),
     mnesia:create_schema([node() | nodes()]),
     mnesia:start(),
     Result = mnesia:create_table(authinfo, [{disc_copies, [node() | nodes()]}, 

File apps/kissbang/src/client_acceptor.erl

 -module(client_acceptor).
 
--export([start_link/1, accept_loop/1]).
+-export([start_link/1, accept_loop/1, client_sock_process/1]).
 
 start_link(Port) ->
     {ok, ListenSocket} = gen_tcp:listen(Port, []),

File apps/kissbang/src/kissbang.app.src

 {application, kissbang,
  [
   {description, ""},
-  {vsn, "1"},
+  {vsn, "2"},
   {registered, []},
   {applications, [
                   kernel,
                   stdlib,
                   sasl,
-                  mnesia,
-                  crypto
+                  crypto,
+                  mnesia
                  ]},
   {mod, { kissbang_app, []}},
   {env, []}

File apps/kissbang/src/origin_controller.erl

 -module(origin_controller).
 
--export([start/1]).
+-export([start/1, origin_work_loop/1]).
 
 -record(state, {socket, authenticated}).
 

File extern/meck/ebin/meck.beam

Binary file modified.

File extern/meck/ebin/meck_cover.beam

Binary file modified.

File extern/meck/ebin/meck_mod.beam

Binary file modified.

File rel/reltool.config

        {lib_dirs, ["../apps"]},
        {erts, [{mod_cond, derived}, {app_file, keep}]},
        {app_file, keep},
-       {rel, "dbgnode", "1",
+       {rel, "dbgnode", "2",
         [
+         mnesia,
          kissbang, 
          kernel,
          stdlib,
          sasl,
-         crypto,
-         mnesia
+         crypto
         ]},
        {rel, "start_clean", "",
         [
        {excl_sys_filters, ["^bin/.*", "^erts.*/bin/(dialyzer|typer)",
                            "^erts.*/(doc|info|include|lib|man|src)"]},
        {excl_app_filters, ["\.gitignore"]},
+       {app, kissbang,   [{incl_cond, include}]},
        {app, sasl,   [{incl_cond, include}]},
        {app, stdlib, [{incl_cond, include}]},
        {app, kernel, [{incl_cond, include}]},
+       {app, crypto, [{incl_cond, include}]},
+       {app, mnesia, [{incl_cond, include}]},
        {app, dbgnode, [{incl_cond, include}]}
       ]}.