예제 #1
0
        public DeployWebAppDeploymentTask(
            IProjectInfoRepository projectInfoRepository,
            IEnvironmentInfoRepository environmentInfoRepository,
            IMsDeploy msDeploy,
            IArtifactsRepository artifactsRepository,
            IIisManager iisManager,
            IFileAdapter fileAdapter,
            IZipFileAdapter zipFileAdapter,
            IApplicationConfiguration applicationConfiguration,
            IDirectoryAdapter directoryAdapter)
            : base(projectInfoRepository, environmentInfoRepository)
        {
            Guard.NotNull(msDeploy, "msDeploy");
            Guard.NotNull(artifactsRepository, "artifactsRepository");
            Guard.NotNull(iisManager, "iisManager");
            Guard.NotNull(fileAdapter, "fileAdapter");
            Guard.NotNull(zipFileAdapter, "zipFileAdapter");
            Guard.NotNull(directoryAdapter, "directoryAdapter");

            _msDeploy                 = msDeploy;
            _artifactsRepository      = artifactsRepository;
            _iisManager               = iisManager;
            _fileAdapter              = fileAdapter;
            _zipFileAdapter           = zipFileAdapter;
            _applicationConfiguration = applicationConfiguration;
            _directoryAdapter         = directoryAdapter;
        }
        public DeployWebAppDeploymentTask(
            IProjectInfoRepository projectInfoRepository,
            IEnvironmentInfoRepository environmentInfoRepository,
            IMsDeploy msDeploy,
            IArtifactsRepository artifactsRepository,
            IIisManager iisManager,
            IFileAdapter fileAdapter,
            IZipFileAdapter zipFileAdapter,
            IApplicationConfiguration applicationConfiguration,
            IDirectoryAdapter directoryAdapter)
            : base(projectInfoRepository, environmentInfoRepository)
        {
            Guard.NotNull(msDeploy, "msDeploy");
              Guard.NotNull(artifactsRepository, "artifactsRepository");
              Guard.NotNull(iisManager, "iisManager");
              Guard.NotNull(fileAdapter, "fileAdapter");
              Guard.NotNull(zipFileAdapter, "zipFileAdapter");
              Guard.NotNull(directoryAdapter, "directoryAdapter");

              _msDeploy = msDeploy;
              _artifactsRepository = artifactsRepository;
              _iisManager = iisManager;
              _fileAdapter = fileAdapter;
              _zipFileAdapter = zipFileAdapter;
              _applicationConfiguration = applicationConfiguration;
              _directoryAdapter = directoryAdapter;
        }
예제 #3
0
        public MsDeployBasedIisManager(IMsDeploy msDeploy)
        {
            if (msDeploy == null)
              {
            throw new ArgumentNullException("msDeploy", "Argument can't be null.");
              }

              _msDeploy = msDeploy;
        }
예제 #4
0
        public MsDeployBasedIisManager(IMsDeploy msDeploy)
        {
            if (msDeploy == null)
            {
                throw new ArgumentNullException("msDeploy", "Argument can't be null.");
            }

            _msDeploy = msDeploy;
        }
        public DeployWebDeployPackageDeploymentStep(IMsDeploy msDeploy, string webServerMachineName, Lazy <string> packageFilePathProvider)
        {
            Guard.NotNull(msDeploy, "msDeploy");
            Guard.NotNullNorEmpty(webServerMachineName, "webServerMachineName");
            Guard.NotNull(packageFilePathProvider, "packageFilePathProvider");

            _msDeploy                = msDeploy;
            _webServerMachineName    = webServerMachineName;
            _packageFilePathProvider = packageFilePathProvider;
        }
        public DeployWebDeployPackageDeploymentStep(IMsDeploy msDeploy, string webServerMachineName, Lazy<string> packageFilePathProvider)
        {
            Guard.NotNull(msDeploy, "msDeploy");
              Guard.NotNullNorEmpty(webServerMachineName, "webServerMachineName");
              Guard.NotNull(packageFilePathProvider, "packageFilePathProvider");

              _msDeploy = msDeploy;
              _webServerMachineName = webServerMachineName;
              _packageFilePathProvider = packageFilePathProvider;
        }
        public DeployWebAppDeploymentTask(
      IMsDeploy msDeploy,
      IEnvironmentInfoRepository environmentInfoRepository,
      IArtifactsRepository artifactsRepository,
      IIisManager iisManager,
      WebAppProjectInfo projectInfo,
      string projectConfigurationName,
      string projectConfigurationBuildId,
      string targetEnvironmentName)
            : base(environmentInfoRepository, targetEnvironmentName)
        {
            if (msDeploy == null)
              {
            throw new ArgumentNullException("msDeploy");
              }

              if (artifactsRepository == null)
              {
            throw new ArgumentNullException("artifactsRepository");
              }

              if (iisManager == null)
              {
            throw new ArgumentNullException("iisManager");
              }

              if (projectInfo == null)
              {
            throw new ArgumentNullException("projectInfo");
              }

              if (string.IsNullOrEmpty(projectConfigurationName))
              {
            throw new ArgumentException("Argument can't be null nor empty.", "projectConfigurationName");
              }

              if (string.IsNullOrEmpty(projectConfigurationBuildId))
              {
            throw new ArgumentException("Argument can't be null nor empty.", "projectConfigurationBuildId");
              }

              _msDeploy = msDeploy;
              _artifactsRepository = artifactsRepository;
              _iisManager = iisManager;
              _projectInfo = projectInfo;
              _projectConfigurationName = projectConfigurationName;
              _projectConfigurationBuildId = projectConfigurationBuildId;
        }
        public CreateWebDeployPackageDeploymentStep(IMsDeploy msDeploy, Lazy<string> webAppBinariesDirPathProvider, string iisSiteName, string webAppName = null)
        {
            Guard.NotNull(msDeploy, "msDeploy");
              Guard.NotNull(webAppBinariesDirPathProvider, "webAppBinariesDirPathProvider");
              Guard.NotNullNorEmpty(iisSiteName, "iisSiteName");

              _msDeploy = msDeploy;
              _webAppBinariesDirPathProvider = webAppBinariesDirPathProvider;
              _iisSiteName = iisSiteName;
              _webAppName = webAppName;

              _fullWebAppName = _iisSiteName;

              if (!string.IsNullOrEmpty(_webAppName))
              {
            _fullWebAppName += string.Format("/{0}", _webAppName);
              }
        }
예제 #9
0
        public CreateWebDeployPackageDeploymentStep(IMsDeploy msDeploy, Lazy <string> webAppBinariesDirPathProvider, string iisSiteName, string webAppName = null)
        {
            Guard.NotNull(msDeploy, "msDeploy");
            Guard.NotNull(webAppBinariesDirPathProvider, "webAppBinariesDirPathProvider");
            Guard.NotNullNorEmpty(iisSiteName, "iisSiteName");

            _msDeploy = msDeploy;
            _webAppBinariesDirPathProvider = webAppBinariesDirPathProvider;
            _iisSiteName = iisSiteName;
            _webAppName  = webAppName;

            _fullWebAppName = _iisSiteName;

            if (!string.IsNullOrEmpty(_webAppName))
            {
                _fullWebAppName += string.Format("/{0}", _webAppName);
            }
        }
        public CreateWebDeployPackageDeploymentStep(IMsDeploy msDeploy, string webAppBinariesDirPath, string iisSiteName, string webApplicationName)
        {
            if (msDeploy == null)
              {
            throw new ArgumentNullException("msDeploy");
              }

              if (string.IsNullOrEmpty(webAppBinariesDirPath))
              {
            throw new ArgumentException("Argument can't be null nor empty.", "webAppBinariesDirPath");
              }

              if (!Path.IsPathRooted(webAppBinariesDirPath))
              {
            throw new ArgumentException(string.Format("Given web app binaries dir path ('{0}') is not an absolute path.", webAppBinariesDirPath), "webAppBinariesDirPath");
              }

              if (string.IsNullOrEmpty(iisSiteName))
              {
            throw new ArgumentException("Argument can't be null nor empty.", "iisSiteName");
              }

              if (string.IsNullOrEmpty(webApplicationName))
              {
            throw new ArgumentException("Argument can't be null nor empty.", "webApplicationName");
              }

              _msDeploy = msDeploy;
              _webAppBinariesDirPath = webAppBinariesDirPath;
              _iisSiteName = iisSiteName;
              _webApplicationName = webApplicationName;

              _webAppBinariesParentDirPath = Path.GetDirectoryName(_webAppBinariesDirPath);

              if (string.IsNullOrEmpty(_webAppBinariesParentDirPath))
              {
            throw new ArgumentException(string.Format("Given web app binaries dir path ('{0}') is not valid because its parent can't be determined.", webAppBinariesDirPath), "webAppBinariesDirPath");
              }

              _packageFilePath = Path.Combine(_webAppBinariesParentDirPath, _WebDeployPackageFileName);
        }
        public DeployWebDeployPackageDeploymentStep(IMsDeploy msDeploy, string packageFilePath, string webServerMachineName)
        {
            if (string.IsNullOrEmpty(packageFilePath))
              {
            throw new ArgumentException("Argument can't be null nor empty.", "packageFilePath");
              }

              if (string.IsNullOrEmpty(webServerMachineName))
              {
            throw new ArgumentException("Argument can't be null nor empty.", "webServerMachineName");
              }

              if (msDeploy == null)
              {
            throw new ArgumentException("Argument can't be null", "msDeploy");
              }

              _packageFilePath = packageFilePath;
              _webServerMachineName = webServerMachineName;
              _msDeploy = msDeploy;
        }
 public DeployWebServiceDeploymentTask(IProjectInfoRepository projectInfoRepository, IEnvironmentInfoRepository environmentInfoRepository, IMsDeploy msDeploy, IArtifactsRepository artifactsRepository, IIisManager iisManager, IFileAdapter fileAdapter, IZipFileAdapter zipFileAdapter)
     : base(projectInfoRepository, environmentInfoRepository, msDeploy, artifactsRepository, iisManager, fileAdapter, zipFileAdapter)
 {
 }
 public DeployWebServiceDeploymentTask(IProjectInfoRepository projectInfoRepository, IEnvironmentInfoRepository environmentInfoRepository, IMsDeploy msDeploy, IArtifactsRepository artifactsRepository, IIisManager iisManager, IFileAdapter fileAdapter, IZipFileAdapter zipFileAdapter, IApplicationConfiguration applicationConfiguration, IDirectoryAdapter directoryAdapter)
     : base(projectInfoRepository, environmentInfoRepository, msDeploy, artifactsRepository, iisManager, fileAdapter, zipFileAdapter, applicationConfiguration, directoryAdapter)
 {
 }
예제 #14
0
 public DeployWebServiceDeploymentTask(IProjectInfoRepository projectInfoRepository, IEnvironmentInfoRepository environmentInfoRepository, IMsDeploy msDeploy, IArtifactsRepository artifactsRepository, IIisManager iisManager, IFileAdapter fileAdapter, IZipFileAdapter zipFileAdapter, IApplicationConfiguration applicationConfiguration, IDirectoryAdapter directoryAdapter)
     : base(projectInfoRepository, environmentInfoRepository, msDeploy, artifactsRepository, iisManager, fileAdapter, zipFileAdapter, applicationConfiguration, directoryAdapter)
 {
 }
 public DeployWebServiceDeploymentTask(IMsDeploy msDeploy,IEnvironmentInfoRepository environmentInfoRepository, IArtifactsRepository artifactsRepository, IIisManager iisManager, WebAppProjectInfo projectInfo, string projectConfigurationName, string projectConfigurationBuildId, string targetEnvironmentName)
     : base(msDeploy, environmentInfoRepository, artifactsRepository, iisManager, projectInfo, projectConfigurationName, projectConfigurationBuildId, targetEnvironmentName)
 {
 }