chrismattmann/drat — pull request #20 by tpalsulich (2014-07-25 20:28:28+00:00)
Title: Refactor go and reset, check OODT/Solr ports for better error prevention, and better help messages.

This patch stems from issue #17.

For clarity, I moved the `go` and `reset` options to separate functions, rather than inlined with the input parsing.

This also introduces checks on whether or not OODT and Solr are running. If the user runs `(go | crawl | index | reduce)`, this checks that OODT and Solr are running. If the user runs `reset`, this checks they are _not_ running.

I also expanded a couple of the error messages. I still don't know why Lewis is having issue #17, `go` doesn't find mappers but `reduce` does.