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