org.apache.itest.shell
Class OS
java.lang.Object
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 ;-)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
OS
public OS()
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.