@ShellComponent public class ReleaseCommands extends AbstractSkipperCommand
skipperClient| Constructor and Description |
|---|
ReleaseCommands(SkipperClient skipperClient) |
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.cloud.deployer.spi.app.DeploymentState |
aggregateState(List<org.springframework.cloud.deployer.spi.app.DeploymentState> states)
Aggregate the set of app states into a single state for a stream.
|
String |
delete(String releaseName,
boolean deletePackage) |
org.springframework.shell.table.Table |
history(String releaseName) |
org.springframework.shell.table.Table |
list(String releaseName) |
String |
rollback(String releaseName,
int releaseVersion) |
Object |
status(String releaseName,
Integer releaseVersion) |
Object |
upgrade(String releaseName,
String packageName,
String packageVersion,
File file,
String properties) |
@Autowired public ReleaseCommands(SkipperClient skipperClient)
public static org.springframework.cloud.deployer.spi.app.DeploymentState aggregateState(List<org.springframework.cloud.deployer.spi.app.DeploymentState> states)
states - set of states for apps of a stream@ShellMethod(key="release upgrade",
value="Upgrade a release.")
public Object upgrade(@ShellOption(help="the name of the release to upgrade")
String releaseName,
@ShellOption(help="the name of the package to use for the upgrade")
String packageName,
@ShellOption(help="the version of the package to use for the upgrade, if not specified latest version will be used",defaultValue="__NULL__")
String packageVersion,
@ShellOption(help="specify values in a YAML file",defaultValue="__NULL__")
File file,
@ShellOption(help="the comma separated set of properties to override during upgrade",defaultValue="__NULL__")
String properties)
throws IOException
IOException@ShellMethod(key="release rollback",
value="Rollback the release to a previous or a specific release.")
public String rollback(@ShellOption(help="the name of the release to rollback")
String releaseName,
@ShellOption(help="the specific release version to rollback to. Not specifying the value rolls back to the previous release.",defaultValue="0")
int releaseVersion)
@ShellMethod(key="release delete",
value="Delete the release.")
public String delete(@ShellOption(help="the name of the release to delete")
String releaseName,
@ShellOption(help="delete the release package",defaultValue="false")
boolean deletePackage)
@ShellMethod(key="release list",
value="List the latest version of releases with status of deployed or failed.")
public org.springframework.shell.table.Table list(@ShellOption(help="wildcard expression to search by release name",defaultValue="__NULL__")
String releaseName)
@ShellMethod(key="release history",
value="List the history of versions for a given release.")
public org.springframework.shell.table.Table history(@ShellOption(help="wildcard expression to search by release name") @NotNull
String releaseName)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.