Package com.guigarage.vagrant.util

Examples of com.guigarage.vagrant.util.VagrantException


   */
  public boolean isReady() {
    try {
      return ((RubyBoolean) vagrantSSH.callMethod("ready?")).isTrue();
    } catch (RaiseException exception) {
      throw new VagrantException(exception);
    }
  }
View Full Code Here


    try {
      vagrantSSH.callMethod("upload",
          RubyString.newString(vagrantSSH.getRuntime(), localPath),
          RubyString.newString(vagrantSSH.getRuntime(), pathOnVM));
    } catch (RaiseException exception) {
      throw new VagrantException(exception);
    }
  }
View Full Code Here

            "execute",
            RubyString.newString(vagrantSSH.getRuntime(), command));
        return (int) number.getLongValue();
      }
    } catch (RaiseException exception) {
      throw new VagrantException(exception);
    }
  }
View Full Code Here

          .callMethod(
              "cli",
              RubyString.newString(
                  vagrantEnvironment.getRuntime(), "up"));
    } catch (RaiseException exception) {
      throw new VagrantException(exception);
    }
  }
View Full Code Here

          vagrantEnvironment.getRuntime(), "add"), RubyString
          .newString(vagrantEnvironment.getRuntime(), boxName),
          RubyString.newString(vagrantEnvironment.getRuntime(),
              boxUrl.toString()));
    } catch (RaiseException exception) {
      throw new VagrantException(exception);
    }
  }
View Full Code Here

        if(name.equals(boxName)) {
          ((RubyObject) box).callMethod("destroy");
        }
      }
    } catch (RaiseException exception) {
      throw new VagrantException(exception);
    }
  }
View Full Code Here

  public String getBoxesPath() {
    try {
      return ((RubyObject) vagrantEnvironment.callMethod("boxes_path"))
          .toString();
    } catch (RaiseException exception) {
      throw new VagrantException(exception);
    }
  }
View Full Code Here

    try {
      vagrantEnvironment.callMethod("cli", RubyString.newString(
          vagrantEnvironment.getRuntime(), "init"), RubyString
          .newString(vagrantEnvironment.getRuntime(), boxName));
    } catch (RaiseException exception) {
      throw new VagrantException(exception);
    }
  }
View Full Code Here

  public boolean isMultiVmEnvironment() {
    try {
      return ((RubyBoolean) vagrantEnvironment.callMethod("multivm?"))
          .isTrue();
    } catch (RaiseException exception) {
      throw new VagrantException(exception);
    }
  }
View Full Code Here

  public String getRootPath() {
    try {
      return ((RubyObject) vagrantEnvironment.callMethod("root_path"))
          .toString();
    } catch (RaiseException exception) {
      throw new VagrantException(exception);
    }
  }
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.