public void CheckoutVersionFromRepository(Repository repository, ArchivedProjectVersion version, Purl directory) { _log.Info("Checking out: " + version + " into " + directory); Archive archive = ArchiveFactory.ReadZip(new Purl(repository.PathFor(version).AsString + ZipPackager.ZipExtension)); ZipUnpackager unpackager = new ZipUnpackager(archive); unpackager.UnpackageZip(directory); }
public void CheckoutVersionFromRepository(Repository repository, ArchivedProjectVersion version, Purl directory) { _log.Info("Checking out: " + version + " into " + directory); FileSystemEntry entry = Infrastructure.FileSystemEntryRepository.FindEntry(repository.PathFor(version)); FileSet fileSet = new FileSet(); fileSet.AddAll(entry.BreadthFirstFiles); CopyFiles(fileSet, directory, true); }
public void CommitVersionToRepository(Repository repository, NewProjectVersion newProjectVersion) { _log.Info("Committing: " + newProjectVersion); using (Archive archive = MakeArchiveFor(newProjectVersion)) { ZipPackager writer = new ZipPackager(archive); writer.WriteZip(new Purl(repository.PathFor(newProjectVersion).AsString + ZipPackager.ZipExtension)); } }
public bool IsVersionPresentInRepository(Repository repository, ArchivedProjectVersion version) { return _fileSystem.IsFile(repository.PathFor(version).AsString + ZipPackager.ZipExtension); }
public ArchivedProjectAndVersion(Repository repository, ArchivedProject project, ArchivedProjectVersion version) { _repository = repository; _project = project; _version = version; }
public ProjectFromRepository(Repository repository, ArchivedProject project) { _repository = repository; _project = project; }
public void AddNewVersion(Repository repository, Tags tags) { ArchivedProject archivedProject = repository.FindOrCreateProject(this); ArchivedProjectVersion version = ArchivedProjectVersion.Create(archivedProject, tags); version.FileSet = this.BuildDirectory.ToFileSet(); archivedProject.AddVersion(version); }
public bool IsVersionPresentInRepository(Repository repository, ArchivedProjectVersion version) { return _fileSystem.IsDirectory(repository.PathFor(version).AsString); }
public void CommitVersionToRepository(Repository repository, NewProjectVersion newProjectVersion) { _log.Info("Committing: " + newProjectVersion); Purl destiny = repository.PathFor(newProjectVersion); CopyFiles(newProjectVersion.FileSet, destiny, false); }