Package com.puppetlabs.geppetto.validation.runner

Examples of com.puppetlabs.geppetto.validation.runner.MetadataInfo


          }
        }
        else {
          // pick (one of) the existing versions (it is actually illegal to have more
          // than one, so just pick the first one).
          MetadataInfo first = Iterables.get(existingVersions, 0);
          b = moduleNodeData.get(first);
        }
        createUnresolvedEdge(a, b, d);
      }
      // Add edges for all resolved dependencies
      for(MetadataInfo.Resolution r : mi.getResolvedDependencies()) {
        createResolvedEdge(a, moduleNodeData.get(r.metadata), r.dependency);
      }
    }
    Map<File, ModuleNodeData> fileIndex = Maps.newHashMap();
    for(Map.Entry<Object, ModuleNodeData> m : moduleNodeData.entrySet()) {
      if(!(m.getKey() instanceof ModuleName)) {
        MetadataInfo mi = (MetadataInfo) m.getKey();
        fileIndex.put(mi.getFile(), m.getValue());
      }
    }
    Map<File, Multimap<File, Export>> ambiguities = exportData.getAmbiguityMap();
    for(Map.Entry<File, Multimap<File, AllModuleReferences.Export>> x : exportData.getImportMap().entrySet()) {
      // get the imported
View Full Code Here


        ModuleName moduleName = m.getName();
        if(options.isCheckModuleSemantics() && isOnPath(pathToFile(f.getAbsolutePath(), root), searchPath)) {
          // remember the metadata and where it came from
          // and if it represents a NODE as opposed to a regular MODULE
          moduleData.put(
            moduleName, new MetadataInfo(m, f, nodeRootPath.isPrefixOf(new Path(f.getAbsolutePath()))));
        }
        if(isValidationWanted(examinedFiles, f)) {
          validateModuleMetadata(m, diagnostics, f, root, options, ticker.newChild(1));
        }
        else
View Full Code Here

TOP

Related Classes of com.puppetlabs.geppetto.validation.runner.MetadataInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.