summaryrefslogtreecommitdiff
path: root/src/dynomite.erl
blob: bb50986bb41fcbb4526dd1bbdd3369538f99591f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
%%% @doc convenience start/stop functions for Dynomite
%%%
-module(dynomite).
-author('Brad Anderson <brad@cloudant.com>').

-export([start/0, stop/0, restart/0]).


%% @doc start Dynomite app with no args, for -s at the command-line
start() ->
    application:start(dynomite).


%% @doc stops the Dynomite application
stop() ->
    application:stop(dynomite).


%% @doc restart Dynomite app, with no args
restart() ->
    stop(),
    start().