Examples of VagrantException


Examples of com.guigarage.vagrant.util.VagrantException

   */
  public void reload() {
    try {
      vagrantVm.callMethod("reload");
    } catch (RaiseException exception) {
      throw new VagrantException(exception);
    }
  }
View Full Code Here

Examples of com.guigarage.vagrant.util.VagrantException

   */
  public void destroy() {
    try {
      vagrantVm.callMethod("destroy");
    } catch (RaiseException exception) {
      throw new VagrantException(exception);
    }
  }
View Full Code Here

Examples of com.guigarage.vagrant.util.VagrantException

   */
  public void suspend() {
    try {
      vagrantVm.callMethod("suspend");
    } catch (RaiseException exception) {
      throw new VagrantException(exception);
    }
  }
View Full Code Here

Examples of com.guigarage.vagrant.util.VagrantException

  public void resume() {
    try {
      vagrantVm.callMethod("resume");
    } catch (RaiseException exception) {
      throw new VagrantException(exception);
    }
  }
View Full Code Here

Examples of com.guigarage.vagrant.util.VagrantException

    // saved: VM wurde pausiert
    try {
      RubySymbol symbol = (RubySymbol) vagrantVm.callMethod("state");
      return symbol.asJavaString();
    } catch (RaiseException exception) {
      throw new VagrantException(exception);
    }
  }
View Full Code Here

Examples of com.guigarage.vagrant.util.VagrantException

   */
  public String getName() {
    try {
      return ((RubyObject) vagrantVm.callMethod("name")).toString();
    } catch (RaiseException exception) {
      throw new VagrantException(exception);
    }
  }
View Full Code Here

Examples of com.guigarage.vagrant.util.VagrantException

  public VagrantSSHConnection createConnection() {
    try {
      return new VagrantSSHConnection(
          ((RubyObject) vagrantVm.callMethod("channel")));
    } catch (RaiseException exception) {
      throw new VagrantException(exception);
    }
  }
View Full Code Here

Examples of com.guigarage.vagrant.util.VagrantException

   */
  public String getUuid() {
    try {
      return ((RubyObject) vagrantVm.callMethod("uuid")).toString();
    } catch (RaiseException exception) {
      throw new VagrantException(exception);
    }
  }
View Full Code Here

Examples of com.guigarage.vagrant.util.VagrantException

    }
   
    init("Vagrantfile", VagrantConfigurationUtilities
        .createVagrantFileContent(configuration.getEnvironmentConfig()));
    } catch (Exception e) {
      throw new VagrantException(e);
    }
  }
View Full Code Here

Examples of com.guigarage.vagrant.util.VagrantException

      String vagrantfileContent) {
    File vagrantFile = new File(vagrantDir, vagrantfileName);
    try {
      FileUtils.writeStringToFile(vagrantFile, vagrantfileContent, false);
    } catch (IOException e) {
      throw new VagrantException("Error while creating "
          + this.getClass().getSimpleName(), e);
    }
    Vagrant vagrant = new Vagrant(true);
    environment = vagrant.createEnvironment(vagrantDir);
  }
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.