NAME
Bio::GMOD::Util::CheckVersions::WormBase - Versioning code for WormBase
SYNOPSIS
use Bio::GMOD::Util::CheckVersions;
my $gmod = Bio::GMOD::Util::CheckVersions->new(-mod => 'WormBase');
my $live = $gmod->live_version();
my $dev = $gmod->development_version();
my $local = $gmod->local_version();
DESCRIPTION
Bio::GMOD::Util::CheckVersions::WormBase implements a single method for checking the locally installed version of WormBase. The generic live_version and development_version provided by the CheckVersions parent class are used to check the current versions on the live and developement sites.
PUBLIC METHODS
- $mod->local_version()
-
Fetch the locally installed version of AceDB. This script attempts to read the symlink located at /usr/local/acedb/elegans, parsing out the WSXXX version:
elegans -> elegans_WS129
As with the other version checks, local_version() returns the WSXXX when called in scalar context, or a hash containing status, title, site, version, and released keys.
The -acedb_path option can be used to override the default path if you store your databases in a different location.
If your installation does not symlink elegans to the installed version of the database, this subroutine may fail.
PRIVATE METHODS
- _read_symlink($path)
-
Read the symlink at the provided path. Used to read the symlink linking pointing to the current version of Acedb.
BUGS
None reported.
SEE ALSO
AUTHOR
Todd Harris <harris@cshl.edu>.
Copyright (c) 2003-2005 Cold Spring Harbor Laboratory.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.