Package org.apache.whirr.service.puppet.statements

Examples of org.apache.whirr.service.puppet.statements.InstallModuleFromGit


  private Statement installModuleFromRemoteFileOrGit(String roleKey, Map<String, String> props) {
    String moduleName = roleKey.substring(PUPPET.length() + 1).replaceAll("\\..*", "");
    URI srcUri = URI.create(props.get(roleKey));
    if ("git".equals(srcUri.getScheme())) {
      return new InstallModuleFromGit(moduleName, srcUri, props.get(roleKey + ".branch"));
    } else {
      try {
        String remotelyAccessibleUrl = prepareRemoteFileUrl.apply(srcUri.toASCIIString());
        return call("install_tarball", remotelyAccessibleUrl, MODULES_DIR + moduleName);
      } catch (IOException e) {
View Full Code Here

TOP

Related Classes of org.apache.whirr.service.puppet.statements.InstallModuleFromGit

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.