Package com.guigarage.vagrant.configuration.builder.util

Examples of com.guigarage.vagrant.configuration.builder.util.VagrantBuilderException


    return this;
  }

  public VagrantEnvironmentConfig build() {
    if(vmConfigs.isEmpty()) {
      throw new VagrantBuilderException("No vm defined");
    }
    return new VagrantEnvironmentConfig(vmConfigs);
  }
View Full Code Here


    return this;
  }

  public VagrantConfiguration build() {
    if (environmentConfig == null) {
      throw new VagrantBuilderException(
          "No VagrantEnvironmentConfig defined");
    }
    return new VagrantConfiguration(environmentConfig,
        fileTemplateConfigurations, folderTemplateConfigurations);
  }
View Full Code Here

    return this;
  }

  public VagrantFolderTemplateConfiguration build() {
    if(localFolder == null && uriTemplate == null) {
      throw new VagrantBuilderException("localFolder or uriTemplate need to be specified");
    }
    if(pathInVagrantFolder == null) {
      throw new VagrantBuilderException("pathInVagrantFolder need to be specified");
    }
    if (localFolder != null) {
      return new VagrantFolderTemplateConfiguration(localFolder,
          pathInVagrantFolder);
    } else {
View Full Code Here

    return this;
  }
 
  public VagrantVmConfig build() {
    if(boxName == null) {
      throw new VagrantBuilderException("No boxName defined");
    }
    return new VagrantVmConfig(name, ip, hostName, boxName, boxUrl, portForwardings, puppetProvisionerConfig, guiMode);
  }
View Full Code Here

    return this;
  }
 
  public VagrantPortForwarding build() {
    if(guestport < 0) {
      throw new VagrantBuilderException("no guestport defined");
    }
    if(hostport < 0) {
      throw new VagrantBuilderException("no hostport defined");
    }
    return new VagrantPortForwarding(name, guestport, hostport);
  }
View Full Code Here

    return this;
  }
 
  public PuppetProvisionerConfig build() {
    if(manifestPath == null) {
      throw new VagrantBuilderException("no manifestPath defined!");
    }
    if(manifestFile == null) {
      throw new VagrantBuilderException("no manifestFile defined!");
    }
    return new PuppetProvisionerConfig(debug, manifestPath, manifestFile, modulesPath);
  }
View Full Code Here

TOP

Related Classes of com.guigarage.vagrant.configuration.builder.util.VagrantBuilderException

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.