summaryrefslogtreecommitdiff
path: root/src/simplec_app.erl
blob: 2e52081a0bfd138f0b6f8054cf2a20ff1f7a1c8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
-module(simplec_app).

-behaviour(application).

%% Application callbacks
-export([start/2, stop/1]).

-include("simplec.hrl").

%% ===================================================================
%% Application callbacks
%% ===================================================================

start(_StartType, _StartArgs) ->
    {ok, Uris} = application:get_env(simplec, uris),
    {ok, Dir} = application:get_env(simplec, dir),
    C = #config{uris=Uris, dir=Dir},
    simplec_sup:start_link(C).

stop(_State) ->
    ok.