Closed ashcrow closed 8 years ago
:umbrella: The latest upstream changes (presumably efbbad8) made this pull request unmergeable. Please resolve the merge conflicts.
I think the CI failure is leftover from the Travis issues.
Nice looking cleanup.
It occurred to me TemporarySSHKey
could follow a context manager pattern by adding an __enter__
method and converting remove
to __exit__
. Mainly just syntactic sugar, but it would be neat to do with TemporarySSHKey(host, logger) as key
and know it'll get removed. Just a thought, certainly not a blocker.
I'll add context manager support just for the heck of it :-)
:arrow_up:
Ah, I was expecting to see with
blocks in the "jobs" code but this works too. :+1:
@mbarnes admittedly I am being lazy and not redoing the areas to use the context manager. But later we can utilize it.
I hear ya. Auto-squashed and human-merged.
This is the first module in the new util package. It adds a common class for handling temporary ssh keys. It also updates code which previously manually handled keys.