forked from lix-project/hydra
Event: teach how to execute a plugin
This commit is contained in:
parent
4e86e55008
commit
d02c6794f4
|
@ -34,3 +34,8 @@ sub new_event {
|
||||||
"event" => parse_payload($channel_name, $payload),
|
"event" => parse_payload($channel_name, $payload),
|
||||||
}, $self;
|
}, $self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub execute {
|
||||||
|
my ($self, $db, $plugin) = @_;
|
||||||
|
return $self->{"event"}->execute($db, $plugin);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue