示例#1
0
        public void EnableDependenciesDeployment(IObjectFactory objectFactory)
        {
            if (IsPrepared)
            {
                throw new InvalidOperationException("Task is already prepared.");
            }

            if (_deploymentInfo == null)
            {
                throw new InvalidOperationException("Task is not initialized.");
            }

            AddSubTask(
                new DeployDependenciesTask(
                    _deploymentInfo.ProjectName,
                    _deploymentInfo.TargetEnvironmentName,
                    _deploymentInfo.DeploymentId,
                    _projectInfoRepository,
                    objectFactory,
                    objectFactory.CreateTeamCityRestClient(),
                    objectFactory.CreateDependentProjectsToDeployWebSelector()));
        }