line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# ============================================================================ |
2
|
|
|
|
|
|
|
package MooseX::App::Plugin::Depends::Meta::Attribute; |
3
|
|
|
|
|
|
|
# ============================================================================ |
4
|
|
|
|
|
|
|
|
5
|
3
|
|
|
3
|
|
11228
|
use Moose::Role; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
21
|
|
6
|
3
|
|
|
3
|
|
14291
|
use namespace::autoclean; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
21
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
has 'depends' => ( |
9
|
|
|
|
|
|
|
is => 'ro', |
10
|
|
|
|
|
|
|
isa => 'ArrayRef[Str]', |
11
|
|
|
|
|
|
|
default => sub { [] }, |
12
|
|
|
|
|
|
|
); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
around 'cmd_tags_list' => sub { |
15
|
|
|
|
|
|
|
my $orig = shift; |
16
|
|
|
|
|
|
|
my ($self) = @_; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
my @tags = $self->$orig(); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
push(@tags,'Depends') |
21
|
|
|
|
|
|
|
if $self->can('depends') |
22
|
|
|
|
|
|
|
&& $self->depends; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
return @tags; |
25
|
|
|
|
|
|
|
}; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
{ |
28
|
|
|
|
|
|
|
package Moose::Meta::Attribute::Custom::Trait::AppDepends; |
29
|
|
|
|
|
|
|
|
30
|
3
|
|
|
3
|
|
982
|
use strict; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
66
|
|
31
|
3
|
|
|
3
|
|
19
|
use warnings; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
181
|
|
32
|
|
|
|
|
|
|
|
33
|
0
|
|
|
0
|
|
|
sub register_implementation { return 'MooseX::App::Plugin::Depends::Meta::Attribute' } |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |