line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# ============================================================================ |
2
|
|
|
|
|
|
|
package MooseX::App::Plugin::Depends::Meta::Attribute; |
3
|
|
|
|
|
|
|
# ============================================================================ |
4
|
|
|
|
|
|
|
|
5
|
3
|
|
|
3
|
|
13245
|
use Moose::Role; |
|
3
|
|
|
|
|
10
|
|
|
3
|
|
|
|
|
24
|
|
6
|
3
|
|
|
3
|
|
16722
|
use namespace::autoclean; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
23
|
|
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
|
|
712
|
use strict; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
103
|
|
31
|
3
|
|
|
3
|
|
27
|
use warnings; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
202
|
|
32
|
|
|
|
|
|
|
|
33
|
0
|
|
|
0
|
|
|
sub register_implementation { return 'MooseX::App::Plugin::Depends::Meta::Attribute' } |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |