Search in sources :

Example 1 with CloudRemoteApplication

use of com.intellij.remoteServer.agent.util.CloudRemoteApplication in project intellij-community by JetBrains.

the class CloudDeploymentRuntime method deploy.

public void deploy(ServerRuntimeInstance.DeploymentOperationCallback callback) {
    try {
        CloudRemoteApplication application = deploy();
        DeploymentLogManager logManager = getLogManager();
        if (logManager != null) {
            LoggingHandler loggingHandler = logManager.getMainLoggingHandler();
            loggingHandler.print("Application is available at ");
            loggingHandler.printHyperlink(application.getWebUrl());
            loggingHandler.print("\n");
        }
        callback.succeeded(this);
    } catch (ServerRuntimeException e) {
        callback.errorOccurred(e.getMessage());
    }
}
Also used : LoggingHandler(com.intellij.remoteServer.runtime.log.LoggingHandler) CloudRemoteApplication(com.intellij.remoteServer.agent.util.CloudRemoteApplication) DeploymentLogManager(com.intellij.remoteServer.runtime.deployment.DeploymentLogManager)

Aggregations

CloudRemoteApplication (com.intellij.remoteServer.agent.util.CloudRemoteApplication)1 DeploymentLogManager (com.intellij.remoteServer.runtime.deployment.DeploymentLogManager)1 LoggingHandler (com.intellij.remoteServer.runtime.log.LoggingHandler)1