mirror of
https://github.com/valitydev/hellgate.git
synced 2024-11-06 02:45:20 +00:00
commit
20a01ee95c
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,7 +3,6 @@ log
|
||||
/_build/
|
||||
*~
|
||||
erl_crash.dump
|
||||
/*.config
|
||||
.tags*
|
||||
*.sublime-workspace
|
||||
.DS_Store
|
||||
|
6
Makefile
6
Makefile
@ -1,5 +1,5 @@
|
||||
REBAR := $(shell which rebar3 2>/dev/null || which ./rebar3)
|
||||
RELNAME = hellegat
|
||||
RELNAME = hellgate
|
||||
|
||||
.PHONY: all compile devrel start test clean distclean dialyze
|
||||
|
||||
@ -14,8 +14,8 @@ rebar-update:
|
||||
devrel:
|
||||
$(REBAR) release
|
||||
|
||||
start: devrel
|
||||
_build/default/rel/${RELNAME}/bin/${RELNAME} console
|
||||
start:
|
||||
$(REBAR) run
|
||||
|
||||
test:
|
||||
$(REBAR) ct
|
||||
|
@ -1,2 +1,3 @@
|
||||
# hellegat
|
||||
Processing main repository
|
||||
# Hellgate
|
||||
|
||||
Проект, реализующий основные state processors проведения платежей.
|
||||
|
@ -1,8 +1,8 @@
|
||||
{application, hellegat , [
|
||||
{application, hellgate, [
|
||||
{description, "A service that does something"},
|
||||
{vsn, "1"},
|
||||
{registered, []},
|
||||
{mod, { hellegat , []}},
|
||||
{mod, {hellgate, []}},
|
||||
{applications, [
|
||||
kernel,
|
||||
stdlib
|
||||
@ -10,8 +10,9 @@
|
||||
{env, []},
|
||||
{modules, []},
|
||||
{maintainers, [
|
||||
"Petr Kozorezov <petr.kozorezov@gmail.com>"
|
||||
"Petr Kozorezov <petr.kozorezov@gmail.com>",
|
||||
"Andrey Mayorov <a.mayorov@rbkmoney.com>"
|
||||
]},
|
||||
{licenses, []},
|
||||
{links, []}
|
||||
{links, ["https://github.com/rbkmoney/hellgate"]}
|
||||
]}.
|
@ -1,7 +1,7 @@
|
||||
%%% @doc Public API, supervisor and application startup.
|
||||
%%% @end
|
||||
|
||||
-module(hellegat).
|
||||
-module(hellgate).
|
||||
-behaviour(supervisor).
|
||||
-behaviour(application).
|
||||
|
||||
@ -22,12 +22,12 @@
|
||||
-spec start() ->
|
||||
{ok, _}.
|
||||
start() ->
|
||||
application:ensure_all_started(hellegat).
|
||||
application:ensure_all_started(?MODULE).
|
||||
|
||||
-spec stop() ->
|
||||
ok.
|
||||
stop() ->
|
||||
application:stop(hellegat).
|
||||
application:stop(?MODULE).
|
||||
|
||||
%%
|
||||
%% Supervisor callbacks
|
@ -1,4 +1,4 @@
|
||||
-module(hellegat_tests_SUITE).
|
||||
-module(hellgate_tests_SUITE).
|
||||
-include_lib("common_test/include/ct.hrl").
|
||||
-compile(export_all).
|
||||
|
||||
@ -14,7 +14,7 @@ all() ->
|
||||
%% starting/stopping
|
||||
%%
|
||||
init_per_suite(C) ->
|
||||
{ok, Apps} = application:ensure_all_started(hellegat),
|
||||
{ok, Apps} = application:ensure_all_started(hellgate),
|
||||
[{apps, Apps}|C].
|
||||
|
||||
init_per_suite(_, _C) ->
|
@ -1,3 +1,3 @@
|
||||
[
|
||||
{ hellegat , []}
|
||||
{hellgate, []}
|
||||
].
|
||||
|
@ -1,6 +1,6 @@
|
||||
-sname hellegat
|
||||
-sname hellgate
|
||||
|
||||
-setcookie hellegat_cookie
|
||||
-setcookie hellgate_cookie
|
||||
|
||||
+K true
|
||||
+A 10
|
||||
|
44
rebar.config
Normal file
44
rebar.config
Normal file
@ -0,0 +1,44 @@
|
||||
{plugins, [
|
||||
rebar3_run
|
||||
]}.
|
||||
|
||||
% Common project erlang options.
|
||||
{erl_opts, [
|
||||
debug_info,
|
||||
warnings_as_errors
|
||||
]}.
|
||||
|
||||
% Common project dependencies.
|
||||
{deps, [
|
||||
]}.
|
||||
|
||||
{xref_checks, [
|
||||
undefined_function_calls,
|
||||
undefined_functions,
|
||||
deprecated_functions_calls,
|
||||
deprecated_functions
|
||||
]}.
|
||||
|
||||
{relx, [
|
||||
{release, {hellgate, "0.1.0"}, [
|
||||
hellgate,
|
||||
sasl
|
||||
]},
|
||||
{sys_config, "./config/sys.config"},
|
||||
{vm_args, "./config/vm.args"},
|
||||
{dev_mode, true},
|
||||
{include_erts, false},
|
||||
{extended_start_script, true}
|
||||
]}.
|
||||
|
||||
{profiles, [
|
||||
{prod, [
|
||||
{relx, [
|
||||
{dev_mode, false},
|
||||
{include_erts, true}
|
||||
]}
|
||||
]},
|
||||
{test, [
|
||||
{deps, []}
|
||||
]}
|
||||
]}.
|
1
rebar.lock
Normal file
1
rebar.lock
Normal file
@ -0,0 +1 @@
|
||||
[].
|
Loading…
Reference in New Issue
Block a user