Encapsulate binary path and version handling #816
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Cleans up main class and allows refactoring of path handling.
Binary path discovery can be complex it seems and this offers a path to improved handling or overriding if necessary.
Long term goal of combining extracted option parsing and this to allow a command class to combine and execute and return result.
I think these combined PRs provide a path to a well factored and a cleaner handling gem's functions.