Beispiel #1
0
 private void UpdateInfo(string RepoURL, string RepoPAT)
 {
     if (File.Exists(Constants.UMOYACLIOutputFile))
     {
         File.Delete(Constants.UMOYACLIOutputFile);
     }
     APIs.CaptureConsoleOutPut("info", "-u " + RepoURL + " -k " + RepoPAT, ResourceDirectory, Constants.UMOYACLIOutputFile);
 }
Beispiel #2
0
 public void Add(Resource ResourceInfo)
 {
     Console.WriteLine("UMOYA add " + ResourceInfo.Id + "@" + ResourceInfo.Version);
     if (File.Exists(Constants.UMOYACLIOutputFile))
     {
         File.Delete(Constants.UMOYACLIOutputFile);
     }
     APIs.CaptureConsoleOutPut("add", ResourceInfo.Id + "@" + ResourceInfo.Version, ResourceDirectory, Constants.UMOYACLIOutputFile);
 }
Beispiel #3
0
 public void Init(string RepoURL, string RepoVersion, string RepoPAT)
 {
     APIs.InitZMOD(ResourceDirectory);
     UpdateInfo(RepoURL + "/" + RepoVersion + "/index.json", RepoPAT);
 }
Beispiel #4
0
        public async Task Init(string RepoURL, string RepoVersion, string RepoPAT)
        {
            await APIs.InitZMOD(ResourceDirectory);

            await UpdateInfo(RepoURL + "/" + RepoVersion + "/index.json", RepoPAT);
        }