Contexts use UUID hashes for hosts, and pass to basic output formatters #52
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.
When running a command on multiple machines, the output from that command is not currently associated with the remote connections. This PR attempts to change that by creating a UUID for each host on context creation, and passing that UUID around as needed.
We also have use for an output formatter but I believe this belongs more in SSHKit than individual apps. This PR includes two basic formatters,
SSHKit.Formatters.PrettyFormatterandSSHKit.Formatters.SilentFormatterand defaults to the latter to remain as quiet as it is today. The formatter can be specified in calls toSSHKit.runandSSHKit.SSH.run. I didn't want to go too hog wild with implementing it elsewhere before seeking your feedback.Thoughts?
Thanks!
#mastersection) if necessary.