Package com.cloudcontrolled.api.response

Examples of com.cloudcontrolled.api.response.UpdateDeploymentResponse


    log.info("Deploying " + deploymentQualifier + " to CloudControl PaaS.");

    CloudControlClient client = CloudControlSupport.createCloudControlClient();
    UpdateDeploymentRequest request = CloudControlSupport.createUpdateDeploymentRequest(application, deployment, commitId);

    UpdateDeploymentResponse response = null;
    try {
      response = client.send(request);

      if (response.isError()) {
        throw new MojoFailureException(response.getContent());
      }
    } catch (CloudControlClientException ccce) {
      throw new MojoExecutionException("CloudControlClientException", ccce);
    }

    log.info("Successfully deployed " + deploymentQualifier);
    log.info("Please, visit to following domain: http://" + response.getDeployment().getDefaultSubdomain());
  }
View Full Code Here

TOP

Related Classes of com.cloudcontrolled.api.response.UpdateDeploymentResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.