line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package Mojolicious::Plugin::Kevin::Commands; |
3
|
|
|
|
|
|
|
$Mojolicious::Plugin::Kevin::Commands::VERSION = '0.7.1'; |
4
|
|
|
|
|
|
|
# ABSTRACT: Mojolicious plugin for alternative minion commands |
5
|
1
|
|
|
1
|
|
698
|
use Mojo::Base 'Mojolicious::Plugin'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub register { |
8
|
0
|
|
|
0
|
1
|
|
my ($self, $app, $conf) = @_; |
9
|
|
|
|
|
|
|
|
10
|
0
|
|
|
|
|
|
push @{$app->commands->namespaces}, 'Kevin::Command'; |
|
0
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
1; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
#pod =encoding utf8 |
16
|
|
|
|
|
|
|
#pod |
17
|
|
|
|
|
|
|
#pod =head1 SYNOPSIS |
18
|
|
|
|
|
|
|
#pod |
19
|
|
|
|
|
|
|
#pod # plugin for Minion |
20
|
|
|
|
|
|
|
#pod $self->plugin(Minion => {Pg => 'postgresql://postgres@/test'}); |
21
|
|
|
|
|
|
|
#pod |
22
|
|
|
|
|
|
|
#pod # then |
23
|
|
|
|
|
|
|
#pod $self->plugin('Kevin::Commands'); |
24
|
|
|
|
|
|
|
#pod |
25
|
|
|
|
|
|
|
#pod # run |
26
|
|
|
|
|
|
|
#pod ./app.pl kevin worker |
27
|
|
|
|
|
|
|
#pod ./app.pl kevin jobs |
28
|
|
|
|
|
|
|
#pod ./app.pl kevin workers |
29
|
|
|
|
|
|
|
#pod |
30
|
|
|
|
|
|
|
#pod =head1 DESCRIPTION |
31
|
|
|
|
|
|
|
#pod |
32
|
|
|
|
|
|
|
#pod L is a plugin that makes |
33
|
|
|
|
|
|
|
#pod C commands available to a L application. |
34
|
|
|
|
|
|
|
#pod |
35
|
|
|
|
|
|
|
#pod These commands are alternative commands to manage |
36
|
|
|
|
|
|
|
#pod and look at L queues. |
37
|
|
|
|
|
|
|
#pod |
38
|
|
|
|
|
|
|
#pod =head1 METHODS |
39
|
|
|
|
|
|
|
#pod |
40
|
|
|
|
|
|
|
#pod L inherits all methods from |
41
|
|
|
|
|
|
|
#pod L and implements the following new ones. |
42
|
|
|
|
|
|
|
#pod |
43
|
|
|
|
|
|
|
#pod =head2 register |
44
|
|
|
|
|
|
|
#pod |
45
|
|
|
|
|
|
|
#pod $plugin->register(Mojolicious->new); |
46
|
|
|
|
|
|
|
#pod |
47
|
|
|
|
|
|
|
#pod Register plugin in L application. |
48
|
|
|
|
|
|
|
#pod |
49
|
|
|
|
|
|
|
#pod =head1 SEE ALSO |
50
|
|
|
|
|
|
|
#pod |
51
|
|
|
|
|
|
|
#pod L, L, L. |
52
|
|
|
|
|
|
|
#pod |
53
|
|
|
|
|
|
|
#pod =cut |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
__END__ |