Skip to content
This repository was archived by the owner on Jan 8, 2022. It is now read-only.

Commit fbe0302

Browse files
committed
Updated platform
1 parent f92d117 commit fbe0302

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Source/Deployer.Raspberry.NetFx/ContainerConfigurator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ where type.GetTypeInfo().ImplementedInterfaces.Contains(typeof(IDeploymentTask))
4444
block.Export<FileSystemOperations>().As<IFileSystemOperations>();
4545
block.Export<BcdInvokerFactory>().As<IBcdInvokerFactory>();
4646
block.Export<WindowsDeployer>().As<IWindowsDeployer>();
47-
block.Export<GitHubDownloader>().As<IGitHubDownloader>();
47+
block.Export<GitHubClient>().As<IGitHubClient>();
4848
block.Export<RaspberryDisklayoutPreparer>().As<IDisklayoutPreparer>();
4949
block.Export<ImageFlasher>().As<IImageFlasher>();
5050
block.Export<DismImageService>().As<IWindowsImageService>();

Source/Deployer.Raspberry/Tasks/UefiDownload.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ namespace Deployer.Raspberry.Tasks
1212
[TaskDescription("Downloading UEFI")]
1313
public class UefiDownload : IDeploymentTask
1414
{
15-
private readonly IGitHubDownloader downloader;
15+
private readonly IGitHubClient githubCient;
1616
private readonly IFileSystemOperations fileSystemOperations;
1717
private const string DownloadFolder = @"Downloaded\UEFI";
1818

19-
public UefiDownload(IGitHubDownloader downloader, IFileSystemOperations fileSystemOperations)
19+
public UefiDownload(IGitHubClient githubCient, IFileSystemOperations fileSystemOperations)
2020
{
21-
this.downloader = downloader;
21+
this.githubCient = githubCient;
2222
this.fileSystemOperations = fileSystemOperations;
2323
}
2424

@@ -29,7 +29,7 @@ public async Task Execute()
2929
return;
3030
}
3131

32-
using (var stream = await downloader.OpenZipStream("https://github.com/andreiw/RaspberryPiPkg"))
32+
using (var stream = await githubCient.Open("https://github.com/andreiw/RaspberryPiPkg"))
3333
{
3434
var zipArchive = new ZipArchive(stream, ZipArchiveMode.Read);
3535

Source/DeployerPlatform

0 commit comments

Comments
 (0)