When we CliTool#registerInstall and CliTool#registerUpdate we need a method to download and install the binary, instead of repeating the code between those two object, we can create a unique method install taking the artifact as argument. Why ? Because we have a bit of logic:
download
try to install system wide
if system success return system path otherwise return download path
And having this method avoid repeating the same lines.
Following https://github.com/containers/podman-desktop-extension-minikube/pull/172
When we
CliTool#registerInstall
andCliTool#registerUpdate
we need a method to download and install the binary, instead of repeating the code between those two object, we can create a unique methodinstall
taking the artifact as argument. Why ? Because we have a bit of logic:And having this method avoid repeating the same lines.