summaryrefslogtreecommitdiff
path: root/src/dynomite.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/dynomite.erl')
-rw-r--r--src/dynomite.erl23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/dynomite.erl b/src/dynomite.erl
new file mode 100644
index 00000000..1b9798c0
--- /dev/null
+++ b/src/dynomite.erl
@@ -0,0 +1,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().