Search in sources :

Example 1 with RSConnectDeployInitiatedEvent

use of org.rstudio.studio.client.rsconnect.events.RSConnectDeployInitiatedEvent in project rstudio by rstudio.

the class RSConnect method deployToRSConnect.

private void deployToRSConnect(String sourceFile, String deployDir, String deployFile, String websiteDir, String description, JsArrayString deployFiles, JsArrayString additionalFiles, JsArrayString ignoredFiles, boolean isSelfContained, boolean isShiny, boolean asMultiple, boolean asStatic, boolean launch, JavaScriptObject jsoRecord) {
    // front if we can
    if (Desktop.isDesktop())
        Desktop.getFrame().bringMainFrameToFront();
    else
        WindowEx.get().focus();
    ArrayList<String> deployFilesList = JsArrayUtil.fromJsArrayString(deployFiles);
    ArrayList<String> additionalFilesList = JsArrayUtil.fromJsArrayString(additionalFiles);
    ArrayList<String> ignoredFilesList = JsArrayUtil.fromJsArrayString(ignoredFiles);
    RSConnectDeploymentRecord record = jsoRecord.cast();
    events_.fireEvent(new RSConnectDeployInitiatedEvent(new RSConnectPublishSource(sourceFile, deployDir, deployFile, websiteDir, isSelfContained, asStatic, isShiny, description), new RSConnectPublishSettings(deployFilesList, additionalFilesList, ignoredFilesList, asMultiple, asStatic), launch, record));
}
Also used : RSConnectPublishSettings(org.rstudio.studio.client.rsconnect.model.RSConnectPublishSettings) RSConnectDeployInitiatedEvent(org.rstudio.studio.client.rsconnect.events.RSConnectDeployInitiatedEvent) JsArrayString(com.google.gwt.core.client.JsArrayString) RSConnectDeploymentRecord(org.rstudio.studio.client.rsconnect.model.RSConnectDeploymentRecord) RSConnectPublishSource(org.rstudio.studio.client.rsconnect.model.RSConnectPublishSource)

Aggregations

JsArrayString (com.google.gwt.core.client.JsArrayString)1 RSConnectDeployInitiatedEvent (org.rstudio.studio.client.rsconnect.events.RSConnectDeployInitiatedEvent)1 RSConnectDeploymentRecord (org.rstudio.studio.client.rsconnect.model.RSConnectDeploymentRecord)1 RSConnectPublishSettings (org.rstudio.studio.client.rsconnect.model.RSConnectPublishSettings)1 RSConnectPublishSource (org.rstudio.studio.client.rsconnect.model.RSConnectPublishSource)1