-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Giving the project the Brujo's touch :P
Project modules were restructured according to Inaka's "Best Practices". Now it's PING-PONG'ing, too.
- Loading branch information
Fernando 'Brujo' Benavides
committed
Sep 28, 2011
1 parent
4dbd3a8
commit 78f9451
Showing
22 changed files
with
370 additions
and
319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,4 @@ | |||
deps | |||
log/*.log | log/*.log | ||
tmp | tmp | ||
tmp/**/* | tmp/**/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,2 @@ | |||
{"src/*", [warn_unused_vars, warn_export_all, warn_shadow_vars, warn_unused_import, warn_unused_function, warn_bif_clash, warn_unused_record, warn_deprecated_function, warn_obsolete_guard, strict_validation, report, warn_export_vars, warn_exported_vars, warn_missing_spec, warn_untyped_record, debug_info, {outdir, "ebin"}, {i, "include"}, {i, "deps/elog/include"}]}. | |||
{"tests/*", [warn_unused_vars, warn_export_all, warn_shadow_vars, warn_unused_import, warn_unused_function, warn_bif_clash, warn_unused_record, warn_deprecated_function, warn_obsolete_guard, strict_validation, report, warn_export_vars, warn_exported_vars, warn_missing_spec, warn_untyped_record, debug_info, {outdir, "ebin"}, {i, "include"}, {i, "deps/elog/include"}]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,28 @@ | |||
ERL := erl -pa deps/*/ebin -pa ebin -pa src -s crypto -boot start_sasl +Bc +K true -smp enable -s inets -s ssl -s elog ${ERL_ARGS} | |||
|
|||
all: | |||
rebar get-deps && rebar compile | |||
|
|||
clean: | |||
rebar clean | |||
|
|||
build_plt: all | |||
dialyzer --build_plt --apps ssl public_key kernel stdlib inets crypto --output_plt ~/.edis_plt -pa deps/*/ebin ebin | |||
|
|||
analyze: all | |||
dialyzer -pa deps/*/ebin --plt ~/.itweet_dialyzer_plt -Wunmatched_returns -Werror_handling -Wbehaviours ebin | |||
|
|||
doc: all | |||
rebar skip_deps=true doc | |||
|
|||
xref: all | |||
rebar skip_deps=true xref | |||
|
|||
run: all | |||
${ERL} -s edis | |||
|
|||
test: all | |||
${ERL} -run edis test | |||
|
|||
shell: all | |||
${ERL} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1 @@ | |||
An *Erlang* version of [Redis](http://redis.io). Still in its very early stages. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,9 +1,11 @@ | |||
{application,edis, | {application,edis, | ||
[{description,[]}, | [{description,"Redis KV Store - The Erlang Way :)"}, | ||
{vsn,"1"}, | {vsn,"0.1"}, | ||
{registered,[]}, | {registered,[]}, | ||
{applications,[kernel,stdlib]}, | {applications,[kernel,stdlib,crypto]}, | ||
{mod,{edis_app,[]}}, | {mod,{edis,[]}}, | ||
{env,[]}, | {env,[{listener_port_range,{6379,6379}},{client_timeout,32000}]}, | ||
{modules,[client_handler,client_manager,config,edis_app, | {modules,[client_handler,client_manager,config,edis,edis_app, | ||
edis_sup,server,tcp_listener]}]}. | edis_client,edis_client_mgr,edis_client_sup, | ||
edis_config,edis_listener,edis_listener_sup,edis_sup, | |||
server,tcp_listener]}]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,2 @@ | |||
-include("elog.hrl"). | |||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,19 @@ | |||
{deps, [{elog, "\.*", {git, "git://github.com/inaka/elog.git", "master"}}]}. | |||
{require_otp_vsn, "R14"}. | |||
{erl_opts, [{src_dirs, ["src", "tests"]}, | |||
{i, "deps/elog/include"}, | |||
warn_unused_vars, | |||
warn_export_all, | |||
warn_shadow_vars, | |||
warn_unused_import, | |||
warn_unused_function, | |||
warn_bif_clash, | |||
warn_unused_record, | |||
warn_deprecated_function, | |||
warn_obsolete_guard, | |||
strict_validation, | |||
warn_export_vars, | |||
warn_exported_vars, | |||
warn_missing_spec, | |||
warn_untyped_record, debug_info]}. | |||
{xref_checks, [undefined_function_calls]}. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,12 +1,14 @@ | |||
{application, edis, | {application, edis, | ||
[ | [ | ||
{description, ""}, | {description, "Redis KV Store - The Erlang Way :)"}, | ||
{vsn, "1"}, | {vsn, "0.1"}, | ||
{registered, []}, | {registered, []}, | ||
{applications, [ | {applications, [ | ||
kernel, | kernel, | ||
stdlib | stdlib, | ||
crypto | |||
]}, | ]}, | ||
{mod, { edis_app, []}}, | {mod, {edis, []}}, | ||
{env, []} | {env, [{listener_port_range, {6379,6379}}, | ||
{client_timeout, 32000}]} | |||
]}. | ]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,40 @@ | |||
%%%------------------------------------------------------------------- | |||
%%% @author Fernando Benavides <fernando.benavides@inakanetworks.com> | |||
%%% @author Chad DePue <chad@inakanetworks.com> | |||
%%% @copyright (C) 2011 InakaLabs SRL | |||
%%% @doc Redis (http://redis.io), but in Erlang | |||
%%% @end | |||
%%%------------------------------------------------------------------- | |||
-module(edis). | |||
-author('Fernando Benavides <fernando.benavides@inakanetworks.com>'). | |||
-author('Chad DePue <chad@inakanetworks.com>'). | |||
-vsn('0.1'). | |||
|
|||
-behaviour(application). | |||
|
|||
%% Application callbacks | |||
-export([start/0, stop/0]). | |||
-export([start/2, stop/1]). | |||
|
|||
%%------------------------------------------------------------------- | |||
%% ADMIN API | |||
%%------------------------------------------------------------------- | |||
%% @doc Starts the application | |||
-spec start() -> ok | {error, {already_started, ?MODULE}}. | |||
start() -> application:start(?MODULE). | |||
|
|||
%% @doc Stops the application | |||
-spec stop() -> ok. | |||
stop() -> application:stop(?MODULE). | |||
|
|||
%%------------------------------------------------------------------- | |||
%% BEHAVIOUR CALLBACKS | |||
%%------------------------------------------------------------------- | |||
%% @private | |||
-spec start(any(), any()) -> {ok, pid()}. | |||
start(_StartType, _StartArgs) -> | |||
edis_sup:start_link(). | |||
|
|||
%% @private | |||
-spec stop(any()) -> ok. | |||
stop(_State) -> ok. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.