JBoss version - File $JBOSS_HOME/version.txt
¶
This module provides plugins access to file $JBOSS_HOME/version.txt
Typical content of file $JBOSS_HOME/version.txt
is:
Red Hat JBoss Enterprise Application Platform - Version 6.4.3.GA
This module parses the file content and stores data in the dict self.parsed
.
The version info can also be got via obj.major
and obj.minor
, etc.
Examples
>>> jboss_version.file_path
'/home/test/jboss/jboss-eap-6.4/version.txt'
>>> jboss_version.raw
'Red Hat JBoss Enterprise Application Platform - Version 6.4.3.GA'
>>> jboss_version.major
6
>>> jboss_version.minor
4
>>> jboss_version.release
3
>>> jboss_version.version
'6.4.3'
>>> jboss_version.code_name
'GA'
- class insights.parsers.jboss_version.JbossVersion(context)[source]¶
Bases:
insights.core.Parser
Parses the content of file
$JBOSS_HOME/version.txt
.- property code_name¶
code name of this running JBoss progress.
- Type
string
- property major¶
the major version of this running JBoss progress.
- Type
int
- property minor¶
the minor version of this running JBoss progress.
- Type
int
- property release¶
release of this running JBoss progress.
- Type
int
- property version¶
the version of this running JBoss progress.
- Type
string