コード例 #1
0
 public void checkDeploymentError(
     String errorMessage,
     SshKeyAwareServerRuntime serverRuntime,
     DeploymentLogManager logManager,
     DeploymentTask deploymentTask) {
   if (isSshKeyErrorMessage(errorMessage) && logManager != null) {
     new DeploymentHandler(serverRuntime, logManager.getMainLoggingHandler(), deploymentTask)
         .handle();
   }
 }
コード例 #2
0
  public void deploy() throws ServerRuntimeException {
    CloudGitApplication application = mySourceHandler.deploy();

    if (myLogManager != null) {
      LoggingHandler loggingHandler = myLogManager.getMainLoggingHandler();
      loggingHandler.print("Application is available at ");
      loggingHandler.printHyperlink(application.getWebUrl());
      loggingHandler.print("\n");
    }
  }
コード例 #3
0
  public void deploy(ServerRuntimeInstance.DeploymentOperationCallback callback) {
    try {
      CloudApplication application = deploy();

      if (myLogManager != null) {
        LoggingHandler loggingHandler = myLogManager.getMainLoggingHandler();
        loggingHandler.print("Application is available at ");
        loggingHandler.printHyperlink(application.getWebUrl());
        loggingHandler.print("\n");
      }

      callback.succeeded(this);
    } catch (ServerRuntimeException e) {
      callback.errorOccurred(e.getMessage());
    }
  }