tgstation-server 6.19.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
RepositoryEngineInstallationData.cs
Go to the documentation of this file.
1using System;
2using System.Threading;
3using System.Threading.Tasks;
4
7
9{
14 {
19
24
28 readonly string targetSubDirectory;
29
37 {
38 this.ioManager = ioManager ?? throw new ArgumentNullException(nameof(ioManager));
39 this.repository = repository ?? throw new ArgumentNullException(nameof(repository));
40 this.targetSubDirectory = targetSubDirectory ?? throw new ArgumentNullException(nameof(targetSubDirectory));
41 }
42
44 public ValueTask DisposeAsync()
45 {
46 repository.Dispose();
47 return ValueTask.CompletedTask;
48 }
49
51 public ValueTask ExtractToPath(string path, CancellationToken cancellationToken)
54 path,
56 cancellationToken);
57 }
58}
RepositoryEngineInstallationData(IIOManager ioManager, IRepository repository, string targetSubDirectory)
Initializes a new instance of the RepositoryEngineInstallationData class.
readonly string targetSubDirectory
The name of the subdirectory the repository is copied to.
ValueTask ExtractToPath(string path, CancellationToken cancellationToken)
Extracts the installation to a given path.A ValueTask representing the running operation.
readonly IIOManager ioManager
The IIOManager for the RepositoryEngineInstallationData.
Represents an on-disk git repository.
ValueTask CopyTo(string path, CancellationToken cancellationToken)
Copies the current working directory to a given path .
Interface for using filesystems.
Definition IIOManager.cs:14
string ConcatPath(params string[] paths)
Combines an array of strings into a path.