summaryrefslogtreecommitdiff
path: root/src/dynomite.erl
blob: 1b9798c0eb7e2da12ae609906529b41cdfe91fa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
%%% @author Brad Anderson <brad@cloudant.com>
%%% @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().