Esempio n. 1
0
        public override IEnumerable <string> GetTargetFolders(IObjectFactory objectFactory, EnvironmentInfo environmentInfo)
        {
            Guard.NotNull(objectFactory, "objectFactory");
            Guard.NotNull(environmentInfo, "environmentInfo");

            if (environmentInfo.EnableFailoverClusteringForNtServices)
            {
                IFailoverClusterManager failoverClusterManager =
                    objectFactory.CreateFailoverClusterManager();

                string clusterGroupName =
                    environmentInfo.GetFailoverClusterGroupNameForProject(Name);

                IEnumerable <string> possibleNodeNames =
                    failoverClusterManager.GetPossibleNodeNames(
                        environmentInfo.FailoverClusterMachineName,
                        clusterGroupName);

                return
                    (possibleNodeNames
                     .Select(node => EnvironmentInfo.GetNetworkPath(node, Path.Combine(environmentInfo.NtServicesBaseDirPath, NtServiceDirName)))
                     .ToList());
            }
            else
            {
                return
                    (new List <string>
                {
                    environmentInfo.GetAppServerNetworkPath(
                        Path.Combine(environmentInfo.NtServicesBaseDirPath, NtServiceDirName))
                });
            }
        }
 public override DeploymentTask CreateDeploymentTask(IObjectFactory objectFactory)
 {
     return
         (new DeployUberDeployerAgentDeploymentTask(
              objectFactory.CreateProjectInfoRepository(),
              objectFactory.CreateEnvironmentInfoRepository(),
              objectFactory.CreateArtifactsRepository(),
              objectFactory.CreateNtServiceManager(),
              objectFactory.CreatePasswordCollector(),
              objectFactory.CreateFailoverClusterManager(),
              objectFactory.CreateDirectoryAdapter(),
              objectFactory.CreateFileAdapter(),
              objectFactory.CreateZipFileAdapter()));
 }
 public override DeploymentTask CreateDeploymentTask(IObjectFactory objectFactory)
 {
     return
     new DeployNtServiceDeploymentTask(
       objectFactory.CreateProjectInfoRepository(),
       objectFactory.CreateEnvironmentInfoRepository(),
       objectFactory.CreateArtifactsRepository(),
       objectFactory.CreateNtServiceManager(),
       objectFactory.CreatePasswordCollector(),
       objectFactory.CreateFailoverClusterManager(),
       objectFactory.CreateDirectoryAdapter(),
       objectFactory.CreateFileAdapter(),
       objectFactory.CreateZipFileAdapter());
 }
        public override DeploymentTask CreateDeploymentTask(IObjectFactory objectFactory)
        {
            if (objectFactory == null)
              {
            throw new ArgumentNullException("objectFactory");
              }

              return
            new DeployExtensionProjectDeploymentTask(
              objectFactory.CreateProjectInfoRepository(),
              objectFactory.CreateEnvironmentInfoRepository(),
              objectFactory.CreateArtifactsRepository(),
              objectFactory.CreateDirectoryAdapter(),
              objectFactory.CreateFileAdapter(),
              objectFactory.CreateZipFileAdapter(),
              objectFactory.CreateFailoverClusterManager(),
              objectFactory.CreateNtServiceManager());
        }
        public override DeploymentTask CreateDeploymentTask(IObjectFactory objectFactory)
        {
            if (objectFactory == null)
            {
                throw new ArgumentNullException("objectFactory");
            }

            return
                (new DeployExtensionProjectDeploymentTask(
                     objectFactory.CreateProjectInfoRepository(),
                     objectFactory.CreateEnvironmentInfoRepository(),
                     objectFactory.CreateArtifactsRepository(),
                     objectFactory.CreateDirectoryAdapter(),
                     objectFactory.CreateFileAdapter(),
                     objectFactory.CreateZipFileAdapter(),
                     objectFactory.CreateFailoverClusterManager(),
                     objectFactory.CreateNtServiceManager()));
        }
Esempio n. 6
0
        public override DeploymentTask CreateDeploymentTask(IObjectFactory objectFactory, string projectConfigurationName, string projectConfigurationBuildId, string targetEnvironmentName)
        {
            if (objectFactory == null)
              {
            throw new ArgumentNullException("objectFactory");
              }

              return
            new DeployNtServiceDeploymentTask(
              objectFactory.CreateEnvironmentInfoRepository(),
              objectFactory.CreateArtifactsRepository(),
              objectFactory.CreateNtServiceManager(),
              objectFactory.CreatePasswordCollector(),
              objectFactory.CreateFailoverClusterManager(),
              this,
              projectConfigurationName,
              projectConfigurationBuildId,
              targetEnvironmentName);
        }
        public override IEnumerable<string> GetTargetFolders(IObjectFactory objectFactory, EnvironmentInfo environmentInfo)
        {
            Guard.NotNull(objectFactory, "objectFactory");
              Guard.NotNull(environmentInfo, "environmentInfo");

              if (environmentInfo.EnableFailoverClusteringForNtServices)
              {
            IFailoverClusterManager failoverClusterManager =
              objectFactory.CreateFailoverClusterManager();

            string clusterGroupName =
              environmentInfo.GetFailoverClusterGroupNameForProject(Name);

            IEnumerable<string> possibleNodeNames =
              failoverClusterManager.GetPossibleNodeNames(
            environmentInfo.FailoverClusterMachineName,
            clusterGroupName);

            return
              possibleNodeNames
            .Select(node => EnvironmentInfo.GetNetworkPath(node, Path.Combine(environmentInfo.NtServicesBaseDirPath, NtServiceDirName)))
            .ToList();
              }
              else
              {
            return
              new List<string>
              {
            environmentInfo.GetAppServerNetworkPath(
              Path.Combine(environmentInfo.NtServicesBaseDirPath, NtServiceDirName))
              };
              }
        }