com.atlassian.bamboo.agent.installer.util
Class AgentInstallerUtil

java.lang.Object
  extended by com.atlassian.bamboo.agent.installer.util.AgentInstallerUtil

public class AgentInstallerUtil
extends java.lang.Object


Method Summary
static java.lang.String getDataModel()
           
static java.lang.String getHomeDir()
          Get the home directory.
static java.lang.String getInstalledPackageVersion()
          Returns version of installer used to install agent.
static boolean isUnix()
           
static void storeInstalledPackageVersion(java.lang.String version)
          Updates the value of installer package version number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDataModel

public static java.lang.String getDataModel()

getHomeDir

public static java.lang.String getHomeDir()
Get the home directory.

Returns:
The home directory

isUnix

public static boolean isUnix()

getInstalledPackageVersion

public static java.lang.String getInstalledPackageVersion()
                                                   throws java.io.IOException
Returns version of installer used to install agent.

Returns:
version of installer, null if undefined
Throws:
java.io.IOException

storeInstalledPackageVersion

public static void storeInstalledPackageVersion(java.lang.String version)
                                         throws java.io.IOException
Updates the value of installer package version number.

Parameters:
version - new version number to store
Throws:
java.io.IOException


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.