| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package Verby::Action::Run::Unconditional; |
|
4
|
2
|
|
|
2
|
|
8367
|
use Moose::Role; |
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
with qw/Verby::Action::Run/; |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub verify { |
|
9
|
|
|
|
|
|
|
my ( $self, $c ) = @_; |
|
10
|
|
|
|
|
|
|
$c->program_finished; |
|
11
|
|
|
|
|
|
|
} |
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
__PACKAGE__; |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
__END__ |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=pod |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 NAME |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
Verby::Action::Run::Unconditional - A default C<verify> method for |
|
22
|
|
|
|
|
|
|
L<Verby::Action::Run> based actions. |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
pakcage MyAction; |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
with qw/ |
|
29
|
|
|
|
|
|
|
Verby::Action::Run |
|
30
|
|
|
|
|
|
|
Verby::Action::Run::Unconditional |
|
31
|
|
|
|
|
|
|
/; |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub do { |
|
34
|
|
|
|
|
|
|
my ( $self, $c ) = @_; |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
$c->create_poe_session( ... ); |
|
37
|
|
|
|
|
|
|
} |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
# no need to supply ->verify |
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
This convenience role makes it easy to write L<Verby::Action::Run> based |
|
44
|
|
|
|
|
|
|
actions that return false from C<verify> until they have actually been run, at |
|
45
|
|
|
|
|
|
|
which point they return true unconditionally. |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=cut |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
|