@Loggable(value=2) public final class DeployMojo extends AbstractMojo
Constructor and Description |
---|
DeployMojo() |
Modifier and Type | Method and Description |
---|---|
protected com.jcabi.beanstalk.maven.plugin.ServerCredentials |
createServerCredentials()
Creates server crecentials.
|
void |
exec(com.jcabi.beanstalk.maven.plugin.Application app,
com.jcabi.beanstalk.maven.plugin.Version version,
String template)
Deploy using this EBT client.
|
void |
execute() |
protected boolean |
isGreen(com.jcabi.beanstalk.maven.plugin.Environment env)
Wait for green status.
|
protected void |
postMortem(com.jcabi.beanstalk.maven.plugin.Environment env)
Report when environment is failed.
|
void |
setSkip(boolean skp)
Set skip option.
|
getLog, getPluginContext, setLog, setPluginContext
public void exec(@NotNull com.jcabi.beanstalk.maven.plugin.Application app, @NotNull com.jcabi.beanstalk.maven.plugin.Version version, @NotNull String template)
app
- Application to deploy toversion
- Version to deploytemplate
- Template to usepublic void setSkip(boolean skp)
skp
- Shall we skip execution?public void execute() throws MojoFailureException
MojoFailureException
protected com.jcabi.beanstalk.maven.plugin.ServerCredentials createServerCredentials() throws MojoFailureException
MojoFailureException
- Thrown in case of error.protected void postMortem(com.jcabi.beanstalk.maven.plugin.Environment env)
env
- The environmentprotected boolean isGreen(com.jcabi.beanstalk.maven.plugin.Environment env)
env
- The environmentCopyright © 2012–2015 jcabi.com. All rights reserved.