Examples of PPSearchPath


Examples of com.puppetlabs.geppetto.pp.dsl.linking.PPSearchPath

    IPreferenceStore store = preferenceStoreAccess.getContextPreferenceStore(project);
    String pathString = store.getString(PPPreferenceConstants.PUPPET_PROJECT_PATH);
    String environment = store.getString(PPPreferenceConstants.PUPPET_ENVIRONMENT);

    // if no path at all specified, the PPSearchPath enforces a default of "*"
    PPSearchPath searchPath = PPSearchPath.fromString(pathString, null);
    // if environment is still empty
    if(environment != null)
      environment = environment.trim();
    if(environment == null || environment.length() == 0)
      environment = "production";

    // System.err.printf("Project %s uses env=%s and path=%s\n", project.getName(), environment, pathString);
    // return a resolved search path
    return searchPath.evaluate(environment);
  }
View Full Code Here

Examples of com.puppetlabs.geppetto.pp.dsl.linking.PPSearchPath

    }
    ppRunner.configureEncoding(options.getEncodingProvider());
    ppRunner.configureSearchPath(root, options.getSearchPath(), options.getEnvironment());

    // get the configured search path
    final PPSearchPath searchPath = ppRunner.getDefaultSearchPath();

    // Modulefile processing
    // Modulefiles must be processed first in order to figure out containers and container visibility.
    final IPath rootPath = new Path(root.getAbsolutePath());
    final IPath nodeRootPath = rootPath.append(NAME_OF_DIR_WITH_RESTRICTED_SCOPE);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.