Exemplo n.º 1
0
        void InstallNug(Directory libDir, NugDirectory nug)
        {
            var targetPackageDir = libDir.GetChildDirectory(nug.NugName);
            _fileSystem.CreateDirectory(targetPackageDir);

            foreach (var file in nug.GetFiles())
            {
                var fileWriteTo = targetPackageDir.GetChildFile(file.Name.GetName());
                _fileSystem.Copy(file.Name.GetPath(), fileWriteTo.Name.GetPath());
            }
        }
 public ProcessingDirectory(Directory directory)
 {
     _processingDirectory = directory.GetChildDirectory(LocationExtensions.Processing);
 }
 public ErrorDirectory(Directory directory)
 {
     _errorLocation = directory.GetChildDirectory(LocationExtensions.Error);
 }
 public ProcessingDirectory(Directory directory)
 {
     _location = directory.GetChildDirectory(LocationExtensions.Processing);
     _location.EnsureExists();
 }
 public ErrorDirectory(Directory directory)
 {
     _location = directory.GetChildDirectory(LocationExtensions.Error);
     _location.EnsureExists();
 }