Package com.puppetlabs.geppetto.pp.facter.Facter

Examples of com.puppetlabs.geppetto.pp.facter.Facter.Facter1_6


   * @throws Exception
   */
  @Test
  public void testLoad_Facter1_6() throws Exception {
    File pptpFile = new File(TestDataProvider.getTestOutputDir(), "facter-1.6.pptp");
    Facter1_6 facter = new Facter1_6();

    // Save the TargetEntry as a loadable resource
    ResourceSet resourceSet = new ResourceSetImpl();
    URI fileURI = URI.createFileURI(pptpFile.getAbsolutePath());
    Resource targetResource = resourceSet.createResource(fileURI);

    // Add all (optional) plugins
    targetResource.getContents().add(facter.asPPTP());
    targetResource.save(null);
    System.err.println("Target saved to: " + fileURI.toString());

  }
View Full Code Here

TOP

Related Classes of com.puppetlabs.geppetto.pp.facter.Facter.Facter1_6

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.