org.apache.itest.shell
Class OS

java.lang.Object
  extended by org.apache.itest.shell.OS
All Implemented Interfaces:
groovy.lang.GroovyObject

public class OS
extends Object
implements groovy.lang.GroovyObject

This class provides various constants describing an odd collection of facts about and OS that we're running on. It was inspired by Puppet's Facter and perhaps should be renamed sometime in the future ;-)


Field Summary
static boolean isLinux
           
static String linux_codename
           
static String linux_flavor
           
static String linux_release
           
 
Constructor Summary
OS()
           
 
Method Summary
 groovy.lang.MetaClass getMetaClass()
           
 Object getProperty(String name)
           
 Object invokeMethod(String name, Object args)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setProperty(String name, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isLinux

public static boolean isLinux

linux_flavor

public static String linux_flavor

linux_codename

public static String linux_codename

linux_release

public static String linux_release
Constructor Detail

OS

public OS()
Method Detail

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject

invokeMethod

public Object invokeMethod(String name,
                           Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject

getProperty

public Object getProperty(String name)
Specified by:
getProperty in interface groovy.lang.GroovyObject

setProperty

public void setProperty(String name,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject


Copyright © 2011. All Rights Reserved.