/// <summary> /// Undeploy a single app from it's YAML settings. For testing purposes only. /// </summary> /// <param name="settings"></param> public void UndeploySingleApp(string settings) { InstalledApplication app = new InstalledApplication(); app.ParseFromString(settings); ApplicationDeployer deployer = new ApplicationDeployer(this.GlobalSettings, app, this.Logger); deployer.UninstallApp(); }
/// <summary> /// Undeploy an application by it's id... /// </summary> /// <param name="id"></param> /// <param name="force"></param> public void RemoveAppById(string id, bool force = false) { var deployment = ApplicationDeployer.GetActiveDeploymentById(this.GlobalSettings, id); if (deployment == null) { this.Logger.LogWarning(false, "Application not installed: " + id); return; } var appdeployer = new ApplicationDeployer(this.GlobalSettings, deployment.installedApplicationSettings, this.Logger); appdeployer.UninstallApp(force); }