Bio-GMOD
view release on metacpan or search on metacpan
GMOD/Admin/Update.pm view on Meta::CPAN
5678910111213141516171819202122232425use
Bio::GMOD;
@ISA
=
qw/Bio::GMOD Bio::GMOD::Util::CheckVersions/
;
# Currently, there is no generic update method. Bio::GMOD::Admin::Update
# must be subclassed for your particular MOD
sub
update {
my
$self
=
shift
;
my
$adaptor
=
$self
->adaptor;
my
$name
=
$adaptor
->name;
$self
->logit(
"$name does not currently support automated updates at this time. Please ask the administrators of $name to add this functionality."
,
-die
=> 1);
}
# MORE TWEAKS NEEDED - configuration, verbosity, etc
sub
mirror {
GMOD/Admin/Update/WormBase.pm view on Meta::CPAN
91011121314151617181920212223242526272829#use Bio::GMOD::Admin::Monitor::blat;
@ISA
=
qw/Bio::GMOD::Admin::Update/
;
################################################
# WormBase-specific update methods
################################################
sub
update {
my
(
$self
,
@p
) =
@_
;
my
$adaptor
=
$self
->adaptor;
$adaptor
->parse_params(
@p
);
my
$version
=
$adaptor
->version;
my
$rsync_module
=
$adaptor
->rsync_module;
$self
->analyze_logs(
-version
=>
$version
,
-site
=> `hostname`);
$self
->prepare_tmp_dir();
( run in 0.316 second using v1.01-cache-2.11-cpan-05444aca049 )