Package com.puppetlabs.geppetto.graph.catalog

Examples of com.puppetlabs.geppetto.graph.catalog.CatalogServices


    File outputFolder = TestDataProvider.getTestOutputDir();
    FileOutputStream svgStream = new FileOutputStream(new File(outputFolder, "missingResourceDelta_1_3.svg"));
    FileOutputStream dotStream = new FileOutputStream(new File(outputFolder, "missingResourceDelta_1_3.dot"));

    IPath rootPath = new Path("/usr/share/puppet");
    CatalogServices catalogServices = new CatalogServices();
    catalogServices.produceDOTDeltaGraph(
      "Sample catalog", oldCatalogStream, rootPath, newCatalogStream, rootPath, dotStream,
      new NullProgressMonitor());
    oldCatalogStream = new FileInputStream(oldCatalogFile);
    newCatalogStream = new FileInputStream(newCatalogFile);
    catalogServices.produceSVGDeltaGraph(
      "Sample catalog", oldCatalogStream, rootPath, newCatalogStream, rootPath, svgStream,
      new NullProgressMonitor());
  }
View Full Code Here


    File outputFolder = TestDataProvider.getTestOutputDir();
    FileOutputStream svgStream = new FileOutputStream(new File(outputFolder, "missingResourceDelta_3_1.svg"));
    FileOutputStream dotStream = new FileOutputStream(new File(outputFolder, "missingResourceDelta_3_1.dot"));

    IPath rootPath = new Path("/usr/share/puppet");
    CatalogServices catalogServices = new CatalogServices();
    catalogServices.produceDOTDeltaGraph(
      "Sample catalog", oldCatalogStream, rootPath, newCatalogStream, rootPath, dotStream,
      new NullProgressMonitor());
    oldCatalogStream = new FileInputStream(oldCatalogFile);
    newCatalogStream = new FileInputStream(newCatalogFile);
    catalogServices.produceSVGDeltaGraph(
      "Sample catalog", oldCatalogStream, rootPath, newCatalogStream, rootPath, svgStream,
      new NullProgressMonitor());
  }
View Full Code Here

    // Write the svg to a file:
    File outputFolder = TestDataProvider.getTestOutputDir();
    FileOutputStream svgStream = new FileOutputStream(new File(outputFolder, "missingResource.svg"));
    FileOutputStream dotStream = new FileOutputStream(new File(outputFolder, "missingResource.dot"));

    CatalogServices catalogServices = new CatalogServices();
    catalogServices.produceDOTGraph("Sample catalog", catalogStream, dotStream, new NullProgressMonitor(), null);
    catalogStream = new FileInputStream(catalogFile);
    catalogServices.produceSVGGraph("Sample catalog", catalogStream, svgStream, new NullProgressMonitor(), null);
  }
View Full Code Here

    InputStream catalogStream = new FileInputStream(catalogFile);
    // Write the svg to a file:
    FileOutputStream svgStream = new FileOutputStream(new File(
      TestDataProvider.getTestOutputDir(), "sampleCatalog1.svg"));

    CatalogServices catalogServices = new CatalogServices();
    catalogServices.produceSVGGraph("Sample catalog", catalogStream, svgStream, new NullProgressMonitor(), null);
  }
View Full Code Here

    InputStream catalogStream = new FileInputStream(catalogFile);
    // Write the svg to a file:
    FileOutputStream svgStream = new FileOutputStream(new File(
      TestDataProvider.getTestOutputDir(), "sampleCatalog2.svg"));

    CatalogServices catalogServices = new CatalogServices();
    catalogServices.produceSVGGraph("Sample catalog", catalogStream, svgStream, new NullProgressMonitor(), null);
  }
View Full Code Here

    // Write the svg to a file:
    File outputFolder = TestDataProvider.getTestOutputDir();
    FileOutputStream svgStream = new FileOutputStream(new File(outputFolder, "sampleCatalog3.svg"));
    FileOutputStream dotStream = new FileOutputStream(new File(outputFolder, "sampleCatalog3.dot"));

    CatalogServices catalogServices = new CatalogServices();
    catalogServices.produceDOTGraph("Sample catalog", catalogStream, dotStream, new NullProgressMonitor(), null);
    catalogStream = new FileInputStream(catalogFile);
    catalogServices.produceSVGGraph("Sample catalog", catalogStream, svgStream, new NullProgressMonitor(), null);
  }
View Full Code Here

    File outputFolder = TestDataProvider.getTestOutputDir();
    FileOutputStream svgStream = new FileOutputStream(new File(outputFolder, "sampleDelta.svg"));
    FileOutputStream dotStream = new FileOutputStream(new File(outputFolder, "sampleDelta.dot"));

    IPath rootPath = new Path("/usr/share/puppet");
    CatalogServices catalogServices = new CatalogServices();
    catalogServices.produceDOTDeltaGraph(
      "Sample catalog", oldCatalogStream, rootPath, newCatalogStream, rootPath, dotStream,
      new NullProgressMonitor());
    oldCatalogStream = new FileInputStream(oldCatalogFile);
    newCatalogStream = new FileInputStream(newCatalogFile);
    catalogServices.produceSVGDeltaGraph(
      "Sample catalog", oldCatalogStream, rootPath, newCatalogStream, rootPath, svgStream,
      new NullProgressMonitor());
  }
View Full Code Here

    File outputFolder = TestDataProvider.getTestOutputDir();
    FileOutputStream svgStream = new FileOutputStream(new File(outputFolder, "sampleDelta_1_3.svg"));
    FileOutputStream dotStream = new FileOutputStream(new File(outputFolder, "sampleDelta_1_3.dot"));

    IPath rootPath = new Path("/usr/share/puppet");
    CatalogServices catalogServices = new CatalogServices();
    catalogServices.produceDOTDeltaGraph(
      "Sample catalog", oldCatalogStream, rootPath, newCatalogStream, rootPath, dotStream,
      new NullProgressMonitor());
    oldCatalogStream = new FileInputStream(oldCatalogFile);
    newCatalogStream = new FileInputStream(newCatalogFile);
    catalogServices.produceSVGDeltaGraph(
      "Sample catalog", oldCatalogStream, rootPath, newCatalogStream, rootPath, svgStream,
      new NullProgressMonitor());
  }
View Full Code Here

    File outputFolder = TestDataProvider.getTestOutputDir();
    FileOutputStream svgStream = new FileOutputStream(new File(outputFolder, "missingResourceDelta.svg"));
    FileOutputStream dotStream = new FileOutputStream(new File(outputFolder, "missingResourceDelta.dot"));

    IPath rootPath = new Path("/usr/share/puppet");
    CatalogServices catalogServices = new CatalogServices();
    catalogServices.produceDOTDeltaGraph(
      "Sample catalog", oldCatalogStream, rootPath, newCatalogStream, rootPath, dotStream,
      new NullProgressMonitor());
    oldCatalogStream = new FileInputStream(oldCatalogFile);
    newCatalogStream = new FileInputStream(newCatalogFile);
    catalogServices.produceSVGDeltaGraph(
      "Sample catalog", oldCatalogStream, rootPath, newCatalogStream, rootPath, svgStream,
      new NullProgressMonitor());
  }
View Full Code Here

TOP

Related Classes of com.puppetlabs.geppetto.graph.catalog.CatalogServices

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.