Esempio n. 1
0
  private VirtualMachine(
      File projectFolder,
      VMDefinition config,
      PrintWriter hostLog,
      PrintWriter vmLog,
      String vagrantPath,
      String scpPath) {
    this.hostShellLog = hostLog;
    this.vmShellLog = vmLog;

    this.sh = new Shell("host/" + config.vmName(), projectFolder, hostShellLog);
    this.sh.getEnvironment().put("HOME", System.getProperty("user.home"));
    this.definition = config;
    this.scpPath = scpPath;
    this.vagrant = new VagrantExecutor(sh, vagrantPath, MAX_COMMAND_RETRIES);
  }
Esempio n. 2
0
 public void init() {
   vagrant.execute(new Init(definition.box().getName()));
 }