Package com.guigarage.vagrant.util

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


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

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

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

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

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

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

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

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

      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

Related Classes of com.guigarage.vagrant.util.VagrantException

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.