Example #1
0
 public string GetFileInstallationPath(string fileFullPath, ReleaseManifestFile.DeployMode deployMode, uint version)
 {
     if (deployMode == ReleaseManifestFile.DeployMode.Managed)
     {
         return(String.Format("{0}/managedfiles/{1}/{2}", GetFolder(), LeagueRADSInstallation.GetReleaseString(version), fileFullPath));
     }
     else if (deployMode == ReleaseManifestFile.DeployMode.Deployed4 || deployMode == ReleaseManifestFile.DeployMode.Deployed0)
     {
         return(String.Format("{0}/releases/{1}/deploy/{2}", GetFolder(), version, fileFullPath));
     }
     else
     {
         throw new UnsupportedDeployModeException();
     }
 }
 private string GetBackupPath(ReleaseManifestFileEntry fileEntry)
 {
     return(Path.Combine(LeagueRADSInstallation.GetReleaseString(fileEntry.Version), fileEntry.GetFullPath()));
 }