@Mojo(name="rollback") public class RollbackReleaseMojo extends AbstractForceableMutatingReleaseMojo
| Constructor and Description |
|---|
RollbackReleaseMojo()
Creates a new
RollbackReleaseMojo. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
execute(Callable<ReleaseManager> releaseManagerCallable)
|
Integer |
getVersion()
Returns the version of the release to roll back to.
|
void |
setVersion(Integer version)
Sets the version of the release to roll back to.
|
getForce, getRecreate, setForce, setRecreategetDisableHooks, getDryRun, getTimeout, getWait, setDisableHooks, setDryRun, setTimeout, setWaitgetReleaseName, setReleaseName, validateReleaseNamecreateClient, createReleaseManager, createTiller, execute, getClientConfiguration, getSkip, getTillerLabels, getTillerNamespace, getTillerPort, setClientConfiguration, setSkip, setTillerLabels, setTillerNamespace, setTillerPort, validateNamespacegetLog, getPluginContext, setLog, setPluginContextpublic RollbackReleaseMojo()
RollbackReleaseMojo.protected void execute(Callable<ReleaseManager> releaseManagerCallable) throws Exception
ReleaseManager
available from the supplied Callable.
This implementation rolls a named release back to a prior version.
execute in class AbstractReleaseMojoreleaseManagerCallable - the Callable that will
provide a ReleaseManager; must not be nullException - if an error occurspublic Integer getVersion()
This method may return null.
Overrides of this method are permitted to return null.
nullsetVersion(Integer)public void setVersion(Integer version)
version - the version to roll back to; must not be nullNullPointerException - if version is nullgetVersion()Copyright © 2017–2018, microBean. All rights reserved.