예제 #1
0
 private void CopyTemplateTestFileSystemTo(IFolder testRootFolder)
 {
     if (Directory.Exists(testRootFolder.FullName))
     {
         var deleter = new FolderDeleter();
         Assert.IsTrue(deleter.CanDeleteFolder(testRootFolder));
         deleter.DeleteFolder(testRootFolder);
     }
     CopyFolderRecursivelyButNoFiles(TempFolder(true).SubFolder("Machine1").FullName + '\\', testRootFolder.FullName + @"\Machine1\");
     CopyFolderRecursivelyButNoFiles(TempFolder(true).SubFolder("Machine2").FullName + '\\', testRootFolder.FullName + @"\Machine2\");
 }
예제 #2
0
        private void CloneRepository(IFolder folder, string branch, IErrorsAndInfos errorsAndInfos)
        {
            if (folder.GitSubFolder().Exists())
            {
                return;
            }

            if (folder.Exists())
            {
                var deleter = new FolderDeleter();
                Assert.IsTrue(deleter.CanDeleteFolder(folder));
                deleter.DeleteFolder(folder);
            }

            const string url = "https://github.com/aspenlaub/PakledCore.git";

            vGitUtilities.Clone(url, branch, new Folder(folder.FullName), new CloneOptions {
                BranchName = branch
            }, true, errorsAndInfos);
        }