com.carrotgarden.maven.aws.cfn.CloudFormUpdateStack Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of carrot-maven-aws-plugin Show documentation
Show all versions of carrot-maven-aws-plugin Show documentation
${project.organization.name} AWS Maven Plugin
/**
* Copyright (C) 2010-2012 Andrei Pozolotin
*
* All rights reserved. Licensed under the OSI BSD License.
*
* http://www.opensource.org/licenses/bsd-license.php
*/
package com.carrotgarden.maven.aws.cfn;
import org.apache.maven.plugin.MojoFailureException;
/**
* cloud formation:
*
* update stack
*
* based on:
*
* stack name
*
* ; wait for completion or fail ({@link #stackTimeout})
*
* @goal cloud-formation-update
*
* @phase prepare-package
*
* @inheritByDefault true
*
* @requiresDependencyResolution test
*
*/
public class CloudFormUpdateStack extends CloudForm {
/**
* {@inheritDoc}
*/
@Override
public void execute() throws MojoFailureException {
try {
getLog().info("stack update init [" + stackName() + "]");
getLog().error("stack update TODO");
getLog().info("stack update done [" + stackName() + "]");
} catch (final Exception e) {
throw new MojoFailureException("bada-boom", e);
}
}
}