Examples of VagrantVmConfig


Examples of com.guigarage.vagrant.configuration.VagrantVmConfig

  public void initWithNewBox() {
    String boxName = "unitTestBox" + System.currentTimeMillis();

    Vagrant vagrant = new Vagrant(true);
    File vagrantTempDir = VagrantTestUtils.createTempDir();
    VagrantVmConfig vmConfig = new VagrantVmConfigBuilder()
        .withBoxName(boxName)
        .withBoxUrl(VagrantUtils.getInstance().getLucid32Url())
        .withName("UniTestVm").build();
    VagrantEnvironmentConfig envConfig = new VagrantEnvironmentConfigBuilder()
        .withVagrantVmConfig(vmConfig).build();
View Full Code Here

Examples of com.guigarage.vagrant.configuration.VagrantVmConfig

  @Test
  public void testSSHExecute() {
    Vagrant vagrant = new Vagrant(true);
    File vagrantTempDir = VagrantTestUtils.createTempDir();
    VagrantVmConfig vmConfig = new VagrantVmConfigBuilder()
        .withLucid32Box()
        .withName("UniTestVm").build();
    VagrantEnvironmentConfig envConfig = new VagrantEnvironmentConfigBuilder()
        .withVagrantVmConfig(vmConfig).build();
View Full Code Here

Examples of com.guigarage.vagrant.configuration.VagrantVmConfig

 
  @Test
  public void testSSHUpload() {
    Vagrant vagrant = new Vagrant(true);
    File vagrantTempDir = VagrantTestUtils.createTempDir();
    VagrantVmConfig vmConfig = new VagrantVmConfigBuilder()
        .withLucid32Box()
        .withName("UniTestVm").build();
    VagrantEnvironmentConfig envConfig = new VagrantEnvironmentConfigBuilder()
        .withVagrantVmConfig(vmConfig).build();
View Full Code Here

Examples of com.guigarage.vagrant.configuration.VagrantVmConfig

 
  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
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.