Created role for Minion Jobs to make dev easier

This commit is contained in:
Thomas Bloor 2018-03-21 17:14:51 +00:00
parent a53479c6c8
commit 3514a9e0ed
No known key found for this signature in database
GPG key ID: 4657C7EBE42CC5CC
4 changed files with 29 additions and 6 deletions

View file

@ -0,0 +1,12 @@
package Pear::LocalLoop::Plugin::Minion::Job;
use Mojo::Base -base;
has [ qw/ job / ];
has app => sub { shift->job->app };
sub run {
die ( __PACKAGE__ . " must implement run sub" );
}
1;