Class SdkUpdater
- java.lang.Object
-
- com.google.cloud.tools.managedcloudsdk.components.SdkUpdater
-
public class SdkUpdater extends Object
Update an SDK.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SdkUpdater
newUpdater(OsInfo.Name osName, Path gcloudPath)
Configure and create a new Updater instance.void
update(ProgressListener progressListener, ConsoleListener consoleListener)
Update the Cloud SDK.
-
-
-
Method Detail
-
update
public void update(ProgressListener progressListener, ConsoleListener consoleListener) throws InterruptedException, CommandExitException, CommandExecutionException
Update the Cloud SDK.- Parameters:
progressListener
- listener to action progress feedbackconsoleListener
- listener to process console feedback- Throws:
InterruptedException
CommandExitException
CommandExecutionException
-
newUpdater
public static SdkUpdater newUpdater(OsInfo.Name osName, Path gcloudPath)
Configure and create a new Updater instance.- Parameters:
gcloudPath
- path to gcloud in the Cloud SDK- Returns:
- a new configured Cloud SDK updater
-
-