hudson.plugins.rake
Class Util
java.lang.Object
hudson.plugins.rake.Util
public class Util
- extends java.lang.Object
Ruby utility class. It's used to detect ruby local installations among other features.
- Author:
- David Calavera
|
Constructor Summary |
Util()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Util
public Util()
getExecutable
public static java.io.File getExecutable(java.lang.String path)
isWindows
public static boolean isWindows()
isLinux
public static boolean isLinux()
isJruby
public static boolean isJruby(java.lang.String path)
hasGemsInstalled
public static boolean hasGemsInstalled(java.lang.String path)
getGemsDir
public static java.io.File getGemsDir(java.lang.String path)
isRakeInstalled
public static boolean isRakeInstalled(java.io.File gemsDir)
getRubyInstallations
public static java.util.Collection<java.io.File> getRubyInstallations()
throws java.io.IOException
- Throws:
java.io.IOException
getCanonicalRubies
public static RubyInstallation[] getCanonicalRubies(RubyInstallation[] currentInstallations)
isAlreadyInstalled
public static boolean isAlreadyInstalled(RubyInstallation[] current,
java.lang.String path)
Copyright © 2009. All Rights Reserved.