예제 #1
0
 public async Task Stop()
 {
     if (this.Deployment.Status != DeploymentStatus.Running)
     {
         return;
     }
     TakoDeploy?.Stop();
 }
예제 #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));
     }
 }
예제 #3
0
        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));
            }
        }