line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mojolicious::Plugin::Minion::Overview::Facade; |
2
|
1
|
|
|
1
|
|
8
|
use Mojo::Base -base; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
6
|
|
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
600
|
use Mojolicious::Plugin::Minion::Overview::Backend::mysql; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
24
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head2 load |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
Load the Minion overview backend |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=cut |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub load { |
14
|
0
|
|
|
0
|
1
|
|
my ($self, $minion) = @_; |
15
|
|
|
|
|
|
|
|
16
|
0
|
0
|
|
|
|
|
if ($minion->backend->isa('Minion::Backend::mysql')) { |
17
|
0
|
|
|
|
|
|
return Mojolicious::Plugin::Minion::Overview::Backend::mysql->new(db => $minion->backend->mysql->db, minion => $minion); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
|
|
|
die "Backend not yet implemented"; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |