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);
 }
        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);
        }
        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);
        }
Example #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));
      }
Example #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));
 }
        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);
        }
        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);
        }
Example #9
0
        public override void RegisterRealTasks(PhysicalServer site)
        {
            string filePath = site.MapPath(_filePath);

            var o = new XmlPokeTask(filePath, _items, new DotNetPath());
            site.AddTask(o);
        }
Example #10
0
        public override void RegisterRealTasks(PhysicalServer server)
        {
            string to = server.MapPath(_folderName);

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

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

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

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