Exemplo n.º 1
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);
 }
 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.º 3
0
        public override void RegisterRealTasks(PhysicalServer site)
        {
            string from = _isRemote ? site.MapPath(_from) : _from;
            string to = site.MapPath(_to);

            var o = new CopyFileTask(from, to, _newFileName, new DotNetPath());
            site.AddTask(o);
        }
Exemplo n.º 4
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.º 5
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.º 6
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.º 7
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.º 8
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.º 9
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.º 10
0
        public override void RegisterRealTasks(PhysicalServer server)
        {
            string to = server.MapPath(_folderName);

            var task = new EmptyFolderTask(to, new DotNetPath());
            server.AddTask(task);
        }
Exemplo n.º 11
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.º 12
0
		public override void RegisterRealTasks(PhysicalServer server)
		{
			server.AddTask(new FilePokeTask(
				server.MapPath(ReplaceTokens(_filePath)),
				_encoding,
				_replacements,
				new DotNetPath()));
		}
Exemplo n.º 13
0
        public override void RegisterRealTasks(PhysicalServer server)
        {
            string to = server.MapPath(_folderName);

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

            server.AddTask(task);
        }
Exemplo n.º 14
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.º 15
0
 public override void RegisterRealTasks(PhysicalServer server)
 {
     server.AddTask(new FilePokeTask(
                        server.MapPath(ReplaceTokens(_filePath)),
                        _encoding,
                        _replacements,
                        new DotNetPath()));
 }
Exemplo n.º 16
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.º 17
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.º 18
0
		public override void RegisterRealTasks(PhysicalServer site)
		{
			string serverFileName = site.MapPath(_file);
			site.AddTask(new DeleteFileTask(serverFileName));
		}
Exemplo n.º 19
0
        public override void RegisterRealTasks(PhysicalServer site)
        {
            string serverFileName = site.MapPath(_file);

            site.AddTask(new DeleteFileTask(serverFileName));
        }