Exemplo n.º 1
0
        public override void RegisterRealTasks(PhysicalServer s)
        {
            var scrubbedPath = _path.GetPhysicalPath(s, PathOnServer, true);

            if (Version == IisVersion.Six)
            {
                s.AddTask(new Iis6Task
                {
                    PathOnServer         = scrubbedPath,
                    ServerName           = s.Name,
                    VirtualDirectoryPath = VdirPath,
                    WebsiteName          = WebsiteName,
                    AppPoolName          = AppPoolName
                });
                return;
            }
            s.AddTask(new Iis7Task
            {
                PathOnServer             = scrubbedPath,
                ServerName               = s.Name,
                VirtualDirectoryPath     = VdirPath,
                WebsiteName              = WebsiteName,
                AppPoolName              = AppPoolName,
                UseClassicPipeline       = ClassicPipelineRequested,
                ManagedRuntimeVersion    = this.ManagedRuntimeVersion,
                PathForWebsite           = this.PathForWebsite,
                PortForWebsite           = this.PortForWebsite,
                Enable32BitAppOnWin64    = Bit32Requested,
                SetProcessModelIdentity  = this.ProcessModelIdentityTypeSpecified,
                ProcessModelIdentityType = ProcessModelIdentityType.ToProcessModelIdentityType(),
                ProcessModelUsername     = this.ProcessModelUsername,
                ProcessModelPassword     = this.ProcessModelPassword,
                AuthenticationToSet      = this.AuthenticationToSet
            });
        }
Exemplo n.º 2
0
        public override void RegisterRealTasks(PhysicalServer server)
        {
            var ub = new UriBuilder("msmq", server.Name) {Path = _queueName};

            if(server.IsLocal) server.AddTask(new CreateLocalMsmqQueueTask(server, new QueueAddress(ub.Uri), _queueOptions.transactional));
            else server.AddTask(new CreateRemoteMsmqQueueTask(server, new QueueAddress(ub.Uri), _queueOptions.transactional));
        }
 public override void RegisterRealTasks(PhysicalServer server)
 {
     server.AddTask(new CreateRegistryKeyTask(server.Name, _hive, _name));
     _subKeys.Each(subKey => subKey.RegisterRealTasks(server));
     _values.Each(value =>
                  server.AddTask(new CreateRegistryValueTask(server.Name, _hive, _name, value.Name, value.ValueType,
                                                             value.Value)));
 }
Exemplo n.º 4
0
		public override void RegisterRealTasks(PhysicalServer server)
		{
			server.AddTask(new CreateRegistryKeyTask(server.Name, _hive, _name));
			_subKeys.Each(subKey => subKey.RegisterRealTasks(server));
			_values.Each(value =>
			             server.AddTask(new CreateRegistryValueTask(server.Name, _hive, _name, value.Name, value.ValueType,
			                                                    value.Value)));
		}
 public override void RegisterRealTasks(PhysicalServer site)
 {
     var location = _path.GetPhysicalPath(site, _location, true);
     if (site.IsLocal)
     {
         site.AddTask(new LocalNServiceBusHostTask(_exeName, location, _instanceName, _username, _password, _serviceName, _displayName, _description));
     }
     else
     {
         site.AddTask(new RemoteNServiceBusHostTask(_exeName, location, _instanceName, site, _username, _password, _serviceName, _displayName, _description));
     }
 }
Exemplo n.º 6
0
 public override void RegisterRealTasks(PhysicalServer site)
 {
     var location = _path.GetPhysicalPath(site, _location,true);
     if (site.IsLocal)
     {
         site.AddTask(new LocalTopshelfTask(_exeName, location, _instanceName, _username, _password));
     }
     else
     {
         site.AddTask(new RemoteTopshelfTask(_exeName, location, _instanceName, site, _username, _password));
     }
 }
Exemplo n.º 7
0
 public override void RegisterRealTasks(PhysicalServer server)
 {
     var location = _configurator._path.GetPhysicalPath(server, _location, true);
     if (server.IsLocal)
     {
         server.AddTask(new LocalInstallRavenDbAsServiceTask(location));
     }
     else
     {
         server.AddTask(new RemoteInstallRavenDbAsServiceTask(server, location));
     }
 }
Exemplo n.º 8
0
            public override void RegisterRealTasks(PhysicalServer server)
            {
                var location = _configurator._path.GetPhysicalPath(server, _location, true);

                if (server.IsLocal)
                {
                    server.AddTask(new LocalUninstallRavenDbAsServiceTask(location));
                }
                else
                {
                    server.AddTask(new RemoteUninstallRavenDbAsServiceTask(server, location));
                }
            }
Exemplo n.º 9
0
        public override void RegisterRealTasks(PhysicalServer site)
        {
            var location = _path.GetPhysicalPath(site, _location, true);

            if (site.IsLocal)
            {
                site.AddTask(new LocalTopshelfTask(_exeName, location, _instanceName, _username, _password));
            }
            else
            {
                site.AddTask(new RemoteTopshelfTask(_exeName, location, _instanceName, site, _username, _password));
            }
        }
Exemplo n.º 10
0
        public override void RegisterRealTasks(PhysicalServer site)
        {
            var location = _path.GetPhysicalPath(site, _location, true);

            if (site.IsLocal)
            {
                site.AddTask(new LocalNServiceBusHostTask(_exeName, location, _instanceName, _username, _password, _serviceName, _displayName, _description, _profiles));
            }
            else
            {
                site.AddTask(new RemoteNServiceBusHostTask(_exeName, location, _instanceName, site, _username, _password, _serviceName, _displayName, _description, _profiles));
            }
        }
Exemplo n.º 11
0
 public override void RegisterRealTasks(PhysicalServer server)
 {
     var ub = new UriBuilder("msmq", server.Name) { Path = _queue };
     if (server.IsLocal)
     {
         var task = new LocalMsmqGrantReadWriteTask(new QueueAddress(ub.Uri), _group);
         server.AddTask(task);
     }
     else
     {
         var task = new RemoteMsmqGrantReadWriteTask(server, new QueueAddress(ub.Uri), _group);
         server.AddTask(task);
     }
 }
Exemplo n.º 12
0
        public override void RegisterRealTasks(PhysicalServer site)
        {
            _args.PromptForUsernameAndPasswordIfNecessary(_exeName);

            var location = _path.GetPhysicalPath(site, _location, true);

            if (site.IsLocal)
            {
                site.AddTask(new LocalNServiceBusHostTask(_exeName, location, _args));
            }
            else
            {
                site.AddTask(new RemoteNServiceBusHostTask(_exeName, location, site, _args));
            }
        }
Exemplo n.º 13
0
        public override void RegisterRealTasks(PhysicalServer site)
        {
            string filePath = site.MapPath(_filePath);

            var o = new XmlPokeTask(filePath, _items, new DotNetPath());
            site.AddTask(o);
        }
Exemplo n.º 14
0
 public override void RegisterRealTasks(PhysicalServer site)
 {
     var task = new PublishSsrsTask(_publishTo);
     task.AddReportsIn(_publishAllIn);
     task.AddReport(_publish);
     site.AddTask(task);
 }
Exemplo n.º 15
0
        public override void RegisterRealTasks(PhysicalServer site)
        {
            DbConnectionInfo connectionInfo;

            if (_connectionString.IsNotEmpty())
            {
                connectionInfo = new DbConnectionInfo(_connectionString);
            }
            else
            {
                connectionInfo = new DbConnectionInfo
                {
                    Server       = site.Name,
                    Instance     = _instanceName,
                    DatabaseName = _databaseName,
                    UserName     = _userName,
                    Password     = _password
                };
            }

            var task = new RoundhousETask(connectionInfo, _scriptsLocation,
                                          _environmentName, _roundhouseMode,
                                          _recoveryMode, _restorePath, _restoreTimeout, _restoreCustomOptions,
                                          _repositoryPath, _versionFile, _versionXPath, _commandTimeout, _commandTimeoutAdmin,
                                          _functionsFolderName, _sprocsFolderName, _viewsFolderName, _upFolderName,
                                          _versionTable, _scriptsRunTable, _scriptsRunErrorTable, _warnOnOneTimeScriptChanges, _outputPath);

            site.AddTask(task);
        }
Exemplo n.º 16
0
 public override void RegisterRealTasks(PhysicalServer s)
 {
     s.AddTask(new RunSqlScriptTask(s.Name, _databaseName)
     {
         ScriptToRun = ScriptToRun
     });
 }
Exemplo n.º 17
0
 public override void RegisterRealTasks(PhysicalServer s)
 {
     s.AddTask(new OutputSqlTask(s.Name, _databaseName)
     {
         OutputSql = OutputSql
     });
 }
 public override void RegisterRealTasks(PhysicalServer server)
 {
     var to = server.MapPath(_to);
     var archiveFilename = _isLocal ? _archiveFilename : server.MapPath(_archiveFilename);
     var task = new UnzipArchiveTask(archiveFilename, to, _options, _path);
     server.AddTask(task);
 }
Exemplo n.º 19
0
        public override void RegisterRealTasks(PhysicalServer site)
        {
            string to = site.MapPath(_to);

            var o = new CopyFileTask(_from, to, _newFileName, new DotNetPath());
            site.AddTask(o);
        }
Exemplo n.º 20
0
        public override void RegisterRealTasks(PhysicalServer site)
        {
            var ub = new UriBuilder("msmq", site.Name) { Path = _queue };
            var task = new MsmqGrantWriteTask(site, new QueueAddress(ub.Uri), _group);

            site.AddTask(task);
        }
Exemplo n.º 21
0
        public override void RegisterRealTasks(PhysicalServer site)
        {
            string filePath = site.MapPath(_filePath);

            var o = new XmlPokeTask(filePath, _items, _setOrInsertItems, _removeItems, new DotNetPath(), _namespacePrefixes);
            site.AddTask(o);
        }
Exemplo n.º 22
0
 public override void RegisterRealTasks(PhysicalServer server)
 {
     var to = server.MapPath(_to);
      var archiveFilename = server.MapPath(_archiveFilename);
      var task = new UnzipArchiveTask(archiveFilename, to, _options, _path, _explicitExistingFileAction);
      server.AddTask(task);
 }
Exemplo n.º 23
0
 public override void RegisterRealTasks(PhysicalServer s)
 {
     s.AddTask(new OutputSqlTask(s.Name, _databaseName)
               {
                   OutputSql = OutputSql
               });
 }
Exemplo n.º 24
0
        public override void RegisterRealTasks(PhysicalServer server)
        {
            var ub = new UriBuilder("msmq", server.Name)
            {
                Path = _queueName
            };

            if (server.IsLocal)
            {
                server.AddTask(new CreateLocalMsmqQueueTask(server, new QueueAddress(ub.Uri)));
            }
            else
            {
                server.AddTask(new CreateRemoteMsmqQueueTask(server, new QueueAddress(ub.Uri)));
            }
        }
        public override void RegisterRealTasks(PhysicalServer site)
        {
            var path =  PathConverter.Convert(site,_path);

            var task = new RemoveAclsInheritanceTask(path);
            site.AddTask(task);
        }
Exemplo n.º 26
0
 public override void RegisterRealTasks(PhysicalServer s)
 {
     s.AddTask(new RunSqlScriptTask(s.Name, _databaseName)
               {
                   ScriptToRun = ScriptToRun
               });
 }
Exemplo n.º 27
0
        public override void RegisterRealTasks(PhysicalServer server)
        {
            string to = server.MapPath(_folderName);

            var task = new EmptyFolderTask(to, new DotNetPath());
            server.AddTask(task);
        }
        public override void RegisterRealTasks(PhysicalServer site)
        {
            var path = PathConverter.Convert(site, _path);

            var task = new ClearAclsTask(path, _groupsToPreserve, _groupsToRemove);
            site.AddTask(task);
        }
Exemplo n.º 29
0
        public override void RegisterRealTasks(PhysicalServer site)
        {
            string target = PathConverter.Convert(site, _target);
            string newName = PathConverter.Convert(site, _newName);

            var o = new RenameTask(target, newName, new DotNetPath());
            site.AddTask(o);
        }
Exemplo n.º 30
0
        public override void RegisterRealTasks(PhysicalServer site)
        {
            var path = PathConverter.Convert(site, _path);

            var task = new ClearAclsTask(path, _groupsToPreserve, _groupsToRemove);

            site.AddTask(task);
        }
        public override void RegisterRealTasks(PhysicalServer site)
        {
            var path = PathConverter.Convert(site, _path);

            var task = new RemoveAclsInheritanceTask(path);

            site.AddTask(task);
        }
Exemplo n.º 32
0
        public override void RegisterRealTasks(PhysicalServer server)
        {
            var to = server.MapPath(_to);
            var archiveFilename = server.MapPath(_archiveFilename);
            var task            = new UnzipArchiveTask(archiveFilename, to, _options, _path);

            server.AddTask(task);
        }
Exemplo n.º 33
0
 public override void RegisterRealTasks(PhysicalServer server)
 {
     server.AddTask(new FilePokeTask(
                        server.MapPath(ReplaceTokens(_filePath)),
                        _encoding,
                        _replacements,
                        new DotNetPath()));
 }
Exemplo n.º 34
0
        public override void RegisterRealTasks(PhysicalServer site)
        {
            string to = site.MapPath(_to);

            var o = new CopyFileTask(_from, to, _newFileName, new DotNetPath());

            site.AddTask(o);
        }
Exemplo n.º 35
0
        public override void RegisterRealTasks(PhysicalServer site)
        {
            string filePath = site.MapPath(_filePath);

            var o = new XmlPokeTask(filePath, _items, _setOrInsertItems, new DotNetPath(), _namespacePrefixes);

            site.AddTask(o);
        }
Exemplo n.º 36
0
 public override void RegisterRealTasks(PhysicalServer s)
 {
     s.AddTask(new RunSqlScriptTask(s.Name, _databaseName)
                   {
                       ScriptToRun = _scriptFile,
                       InstanceName = InstanceName
                   });
 }
Exemplo n.º 37
0
        public override void RegisterRealTasks(PhysicalServer server)
        {
            string to = server.MapPath(_folderName);

            var task = new EmptyFolderTask(to, new DotNetPath());

            server.AddTask(task);
        }
Exemplo n.º 38
0
 public override void RegisterRealTasks(PhysicalServer s)
 {
     s.AddTask(new RunSqlScriptTask(s.Name, _databaseName)
     {
         ScriptToRun  = _scriptFile,
         InstanceName = InstanceName
     });
 }
Exemplo n.º 39
0
		public override void RegisterRealTasks(PhysicalServer server)
		{
			server.AddTask(new FilePokeTask(
				server.MapPath(ReplaceTokens(_filePath)),
				_encoding,
				_replacements,
				new DotNetPath()));
		}
        public override void RegisterRealTasks(PhysicalServer site)
        {
            var path = PathConverter.Convert(site, _path);
            path = RemotePathHelper.Convert(site, path);

            var task = new GrantReadWriteTask(path, _group, new DotNetPath());
            site.AddTask(task);
        }
Exemplo n.º 41
0
        public override void RegisterRealTasks(PhysicalServer site)
        {
            var task = new PublishSsrsTask(_publishTo);

            task.AddReportsIn(_publishAllIn);
            task.AddReport(_publish);
            site.AddTask(task);
        }
Exemplo n.º 42
0
        public override void RegisterRealTasks(PhysicalServer site)
        {
            string target = _target;
            string newName = _newName;
            target = RemotePathHelper.Convert(site, target);

            var o = new RenameTask(target, newName, new DotNetPath());
            site.AddTask(o);
        }
Exemplo n.º 43
0
        public override void RegisterRealTasks(PhysicalServer server)
        {
            var ub = new UriBuilder("msmq", server.Name)
            {
                Path = _queue
            };

            if (server.IsLocal)
            {
                var task = new LocalMsmqGrantReadWriteTask(new QueueAddress(ub.Uri), _group);
                server.AddTask(task);
            }
            else
            {
                var task = new RemoteMsmqGrantReadWriteTask(server, new QueueAddress(ub.Uri), _group);
                server.AddTask(task);
            }
        }
Exemplo n.º 44
0
 public override void RegisterRealTasks(PhysicalServer s)
 {
     s.AddTask(new FolderShareTask
     {
         PointingTo = _pointingTo,
         Server     = s.Name,
         ShareName  = _shareName
     });
 }
Exemplo n.º 45
0
 public override void RegisterRealTasks(PhysicalServer s)
 {
     s.AddTask(new FolderShareTask
                   {
                       PointingTo = _pointingTo,
                       Server = s.Name,
                       ShareName = _shareName
                   });
 }
Exemplo n.º 46
0
        public override void RegisterRealTasks(PhysicalServer site)
        {
            string target  = PathConverter.Convert(site, _target);
            string newName = PathConverter.Convert(site, _newName);

            var o = new RenameTask(target, newName, new DotNetPath());

            site.AddTask(o);
        }
Exemplo n.º 47
0
        public override void RegisterRealTasks(PhysicalServer site)
        {
            var ub = new UriBuilder("msmq", site.Name)
            {
                Path = _queue
            };

            site.AddTask(new SetSensibleMsmqDefaults(site, new QueueAddress(ub.Uri)));
        }
Exemplo n.º 48
0
        public override void RegisterRealTasks(PhysicalServer site)
        {
            var path = PathConverter.Convert(site, _path);
            //path = RemotePathHelper.Convert(site, path);

            var task = new GrantReadWriteTask(path, _group, new DotNetPath());

            site.AddTask(task);
        }
Exemplo n.º 49
0
        public override void RegisterRealTasks(PhysicalServer server)
        {
            string to = server.MapPath(_to);

            foreach (var f in _froms)
            {
                var o = new CopyDirectoryTask(f, to, _options, _path);
                server.AddTask(o);
            }
        }
Exemplo n.º 50
0
 public override void RegisterRealTasks(PhysicalServer s)
 {
     s.AddTask(new FolderShareTask
     {
         PointingTo        = _pointingTo,
         Server            = s.Name,
         ShareName         = _shareName,
         DeleteAndRecreate = _existingShareOptions.deleteAndRecreate
     });
 }
Exemplo n.º 51
0
 public override void RegisterRealTasks(PhysicalServer s)
 {
     s.AddTask(new FolderShareTask
                   {
                       PointingTo = _pointingTo,
                       Server = s.Name,
                       ShareName = _shareName,
                       DeleteAndRecreate = _existingShareOptions.deleteAndRecreate
                   });
 }
Exemplo n.º 52
0
        public override void RegisterRealTasks(PhysicalServer site)
        {
            var ub = new UriBuilder("msmq", site.Name)
            {
                Path = _queue
            };
            var task = new MsmqGrantWriteTask(site, new QueueAddress(ub.Uri), _group);

            site.AddTask(task);
        }
Exemplo n.º 53
0
      public override void RegisterRealTasks(PhysicalServer server) {

         server.AddTask(new ExistsTask(new DotNetPath(),
            _reason,
            _filesShouldExist.Select(x => server.MapPath(x)).ToList(),
            _directoriesShouldExist.Select(x => server.MapPath(x)).ToList(),
            _filesShould_NOT_Exist.Select(x => server.MapPath(x)).ToList(),
            _directoriesShould_NOT_Exist.Select(x => server.MapPath(x)).ToList(),
            _shouldAbortOnError));
      }
Exemplo n.º 54
0
 public override void RegisterRealTasks(PhysicalServer server)
 {
     server.AddTask(new ExistsTask(new DotNetPath(),
                                   _reason,
                                   _filesShouldExist.Select(x => server.MapPath(x)).ToList(),
                                   _directoriesShouldExist.Select(x => server.MapPath(x)).ToList(),
                                   _filesShould_NOT_Exist.Select(x => server.MapPath(x)).ToList(),
                                   _directoriesShould_NOT_Exist.Select(x => server.MapPath(x)).ToList(),
                                   _shouldAbortOnError));
 }
Exemplo n.º 55
0
        public override void RegisterRealTasks(PhysicalServer server)
        {
            string to = server.MapPath(_to);

            foreach (var f in _froms)
            {
                var o = new CopyDirectoryTask(f, to, _options, _path);
                server.AddTask(o);
            }
        }
Exemplo n.º 56
0
        public override void RegisterRealTasks(PhysicalServer site)
        {
            string target  = _target;
            string newName = _newName;

            target = RemotePathHelper.Convert(site, target);

            var o = new RenameTask(target, newName, new DotNetPath());

            site.AddTask(o);
        }
Exemplo n.º 57
0
        public override void RegisterRealTasks(PhysicalServer site)
        {
            string target = site.MapPath(_target);
            string newName = site.MapPath(_newName);

            if (!Path.IsPathRooted(_newName))
                newName = site.MapPath(Path.Combine(Path.GetDirectoryName(_target), _newName));

            var o = new RenameTask(target, newName, new FileSystem.DotNetPath(), _deleteDestination);
            site.AddTask(o);
        }
Exemplo n.º 58
0
        public override void RegisterRealTasks(PhysicalServer s)
        {
            if (s.IsLocal)
            {
                s.AddTask(new LocalCommandLineTask(new DotNetPath(), _command)
                {
                    Args = _args,
                    ExecutableIsLocatedAt = _path,
                    WorkingDirectory      = _workingDirectory
                });
                return;
            }

            s.AddTask(new RemoteCommandLineTask(_command)
            {
                Args = _args,
                ExecutableIsLocatedAt = _path,
                WorkingDirectory      = _workingDirectory
            });
        }
Exemplo n.º 59
0
        public override void RegisterRealTasks(PhysicalServer site)
        {
            var serverAddressWithInstance = site.Name;
            if (!string.IsNullOrEmpty(_instanceName))
                serverAddressWithInstance = @"{0}\{1}".FormatWith(serverAddressWithInstance, _instanceName);

            var task = new RoundhousETask(serverAddressWithInstance, _databaseType, _databaseName, _drop,
                                          _scriptsLocation, _environmentName, _useSimpleRecoveryMode);

            site.AddTask(task);
        }
Exemplo n.º 60
0
        public override void RegisterRealTasks(PhysicalServer s)
        {
            if (s.IsLocal)
            {
                s.AddTask(new LocalCommandLineTask(new DotNetPath(), _command)
                              {
                                  Args = _args,
                                  ExecutableIsLocatedAt = _path,
                                  WorkingDirectory = _workingDirectory
                              });
                return;
            }

            s.AddTask(new RemoteCommandLineTask(_command)
                          {
                              Args = _args,
                              ExecutableIsLocatedAt = _path,
                              WorkingDirectory = _workingDirectory
                          });
        }