2013-05-08 17:30:30 +02:00
|
|
|
package Hydra::Plugin;
|
|
|
|
|
2013-05-08 18:34:18 +02:00
|
|
|
use strict;
|
2013-05-08 17:30:30 +02:00
|
|
|
use Module::Pluggable
|
|
|
|
search_path => "Hydra::Plugin",
|
2013-05-08 18:34:18 +02:00
|
|
|
instantiate => 'new';
|
|
|
|
|
|
|
|
sub new {
|
|
|
|
my ($class, %args) = @_;
|
|
|
|
my $self = { db => $args{db}, config => $args{config} };
|
|
|
|
bless $self, $class;
|
|
|
|
return $self;
|
|
|
|
}
|
2013-05-08 17:30:30 +02:00
|
|
|
|
|
|
|
# Called when build $build has finished. If the build failed, then
|
|
|
|
# $dependents is an array ref to a list of builds that have also
|
|
|
|
# failed as a result (i.e. because they depend on $build or a failed
|
|
|
|
# dependeny of $build).
|
2013-05-08 18:34:18 +02:00
|
|
|
sub buildFinished {
|
|
|
|
my ($self, $build, $dependents) = @_;
|
|
|
|
}
|
2013-05-08 17:30:30 +02:00
|
|
|
|
|
|
|
1;
|