anchor.diff:           get_app_env/1,
            get_app_env/2,
            get_vm_env/1,
  +         base_dir/0,
  +         etc_dir/0,
            user/0]).
   
   %% @doc Prepares appropriate configuration so the riaknostic script
  
positive.code:         _ -> undefined
      end.
  
  %% Private functions
  
  start_lager() ->
  
negative.code:     end.
  
  load_vm_args() ->
      case filelib:is_dir(etc_dir()) of
          false ->
              {error, "Cannot find Riak configuration directory!"};
          true ->
              VmArgs = filename:join([etc_dir(), "vm.args"]),
              case file:read_file(VmArgs) of
                  {error, Reason} ->
                      {error, io_lib:format("Could not read ~s, received error ~w!", [VmArgs, Reason])};
  