This repository was archived by the owner on Jan 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 33using Deployer . Gui . Common ;
44using Deployer . Raspberry . Console ;
55using Deployer . Raspberry . Gui . Views ;
6- using Serilog ;
7-
86
97namespace Deployer . Raspberry . Gui
108{
Original file line number Diff line number Diff line change @@ -15,13 +15,11 @@ namespace Deployer.Raspberry.Tasks
1515 public class DownloadUefi : IDeploymentTask
1616 {
1717 private readonly string destination ;
18- private readonly IGitHubClient githubCient ;
1918 private readonly IFileSystemOperations fileSystemOperations ;
2019
21- public DownloadUefi ( string destination , IGitHubClient githubCient , IFileSystemOperations fileSystemOperations )
20+ public DownloadUefi ( string destination , IFileSystemOperations fileSystemOperations )
2221 {
2322 this . destination = destination ;
24- this . githubCient = githubCient ;
2523 this . fileSystemOperations = fileSystemOperations ;
2624 }
2725
@@ -33,12 +31,10 @@ public async Task Execute()
3331 return ;
3432 }
3533
36- using ( var stream = await githubCient . Open ( "https://github.com/andreiw/RaspberryPiPkg" ) )
34+ using ( var stream = await GitHubMixin . OpenBranchStream ( "https://github.com/andreiw/RaspberryPiPkg" ) )
3735 {
3836 var zipArchive = await Observable . Start ( ( ) => new ZipArchive ( stream , ZipArchiveMode . Read ) ) ;
39-
4037 var mostRecentFolderEntry = GetMostRecentDirEntry ( zipArchive ) ;
41-
4238 var contents = zipArchive . Entries . Where ( x => x . FullName . StartsWith ( mostRecentFolderEntry . FullName ) && ! x . FullName . EndsWith ( "/" ) ) ;
4339 await ExtractContents ( mostRecentFolderEntry , contents ) ;
4440 }
You can’t perform that action at this time.
0 commit comments