anchor.diff:        find_riak(Rest)
     end.
   
  +-spec find_riak_logs([path()]) -> {found, [path(),...]} | not_found.
   find_riak_logs(RiakDir) ->
     {ok, RiakLogHomes} = application:get_env(riaknostic, riak_log_homes),
     PossibleLogDirs = lists:map(fun(LogDir) ->
  
positive.code: -module(riaknostic).
  -export([main/1,
           run/1,
           find_riak/1,
           find_riak_logs/1,
           fetch_riak_stats/1,
           ping_riak/0]).
  
  main(Args) ->
    application:start(riaknostic),
    Opts = riaknostic_opts:parse(Args),
    run(proplists:get_value(dirs, Opts, [])).
  
  run([]) ->
    {ok, Dirs} = application:get_env(riaknostic, riak_homes),
    riaknostic:run(Dirs);
  
  run(Dirs) ->
    Dir = case find_riak(Dirs) of
      {found, RDir} ->
        io:format("Found Riak installation in: ~s~n", [RDir]),
        RDir;
  
negative.code: 
    lists:foreach(Runner, Modules).
  
  -spec find_riak([path()]) -> {found, path()} | not_found.
  find_riak([]) ->
    not_found;
  
  