add Version routine

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1618 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2008-06-10 16:39:20 +00:00
parent 645d9c8b83
commit b077980164

View File

@ -205,6 +205,30 @@ sub isLinux
#-------------------------------------------------------------------------------
=head3 Version
Arguments:
none
Returns:
xcat Version number
Globals:
none
Error:
none
Example:
$version=xCAT::Utils->Version();
Comments:
none
=cut
#-------------------------------------------------------------------------------
sub Version
{
my $version = "Version 2.1\n";
return $version;
}
#-------------------------------------------------------------------------------
=head3 make_node_list_file
Makes a node list file.
@ -2337,5 +2361,24 @@ sub isMounted
}
return 0;
}
#-------------------------------------------------------------------------------
=head3 Version
Returns the Version of the release, to be used for the version flag on
each command
Arguments:
None
Returns:
version number
Globals:
none
Error:
Example:
my $version= xCAT::Version();
#-------------------------------------------------------------------------------
sub Version
{
my $version="Version 2.1";
return $version;
}
1;