コード例 #1
0
        /// <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();
        }
コード例 #2
0
        public void StopAppById(string id)
        {
            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.StopApp();
        }