public override DeploymentModule <TRunner> Deploy(DeploymentRunner <TRunner> runner)
        {
            // copy files
            string sourceFullPath      = Path.Combine(runner.SourcePathRoot, sourcePath);
            string destinationFullPath = Path.Combine(runner.DestinationPathRoot, destinationPath);

            runner
            .CopyDirectoryStructure(sourceFullPath, destinationFullPath, true);

            // create virtual directory
            Iis6CreateWebApplicationTask task = new Iis6CreateWebApplicationTask();

            task.ApplicationName = virtualDirectoryName;
            task.LocalPath       = destinationFullPath;
            task.Mode            = CreateWebApplicationMode.UpdateIfExists;

            if (customizeWebApplicationCallback != null)
            {
                customizeWebApplicationCallback(task);
            }

            runner.RunTask(task);
            return(this);
        }
Exemple #2
0
 public DeploymentModulesRegistry(DeploymentRunner <TRunner> runner)
 {
     this.runner = runner;
 }