Commits

Anonymous committed d92198b

test for luwak/enabled appconfig

Comments (0)

Files changed (1)

src/luwak_app.erl

 %% ===================================================================
 
 start(_StartType, _StartArgs) ->
-    riak_core_util:start_app_deps(luwak),
-    add_webmachine_routes(),
+    case app_helper:get_env(luwak, enabled, false) of
+        true ->
+            riak_core_util:start_app_deps(luwak),
+            add_webmachine_routes();
+        _ ->
+            nop
+    end,
     {ok,self()}.
 
 stop(_State) ->