Esempio n. 1
0
        public static ManifestInfo Create(Manifest model, ManifestFilter manifestFilter, string repoOwner)
        {
            ManifestInfo manifestInfo = new ManifestInfo();

            manifestInfo.Model = model;
            manifestInfo.Repos = manifestFilter.GetRepos(manifestInfo.Model)
                                 .Select(repo => RepoInfo.Create(repo, manifestInfo.Model, manifestFilter, repoOwner))
                                 .ToArray();
            manifestInfo.Images = manifestInfo.Repos
                                  .SelectMany(repo => repo.Images)
                                  .ToArray();
            manifestInfo.ActiveImages = manifestInfo.Images
                                        .Where(image => image.ActivePlatform != null)
                                        .ToArray();
            manifestInfo.ActivePlatformFullyQualifiedTags = manifestInfo.ActiveImages
                                                            .SelectMany(image => image.ActivePlatform.Tags)
                                                            .Select(tag => tag.FullyQualifiedName)
                                                            .ToArray();
            manifestInfo.TestCommands = manifestFilter.GetTestCommands(manifestInfo.Model);

            return(manifestInfo);
        }
Esempio n. 2
0
 public IEnumerable <string> GetTestCommands()
 {
     return(ManifestFilter.GetTestCommands(Model)
            .Select(command => VariableHelper.SubstituteValues(command)));
 }