Beispiel #1
0
 public async Task Stop()
 {
     if (this.Deployment.Status != DeploymentStatus.Running)
     {
         return;
     }
     TakoDeploy?.Stop();
 }
Beispiel #2
0
 public async Task Validate()
 {
     if (this.Deployment.Status == DeploymentStatus.Running)
     {
         DeploymentEvent?.Invoke(this.Deployment, new ProgressEventArgs(new InvalidOperationException("Validation is already running.")));
     }
     else
     {
         TakoDeploy = new TakoDeploy(this.Deployment);
         await TakoDeploy.ValidateDeploy(e => DeploymentEvent?.Invoke(this, e));
     }
 }
        public async Task Deploy(DeployOptions options = null)
        {
            if (options == null)
            {
                options = new DeployOptions();
            }

            if (this.Deployment.Status == DeploymentStatus.Running)
            {
                DeploymentEvent?.Invoke(this.Deployment, new ProgressEventArgs(new InvalidOperationException("Deployment is already running.")));
            }
            else
            {
                TakoDeploy = new TakoDeploy(this.Deployment);
                await TakoDeploy.BeginDeploy(options, e => DeploymentEvent?.Invoke(this, e));
            }
        }