line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MMM::Sync::Dummy; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
3224
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
76
|
|
4
|
2
|
|
|
2
|
|
13
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
58
|
|
5
|
2
|
|
|
2
|
|
12
|
use MMM::Sync; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
748
|
|
6
|
|
|
|
|
|
|
our @ISA = qw(MMM::Sync); |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
MMM::Sync::Rsync |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=cut |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub buildcmd { |
15
|
2
|
|
|
2
|
1
|
3
|
my ($self) = @_; |
16
|
|
|
|
|
|
|
|
17
|
2
|
|
|
|
|
4
|
my @command = ('/bin/true'); |
18
|
|
|
|
|
|
|
|
19
|
2
|
|
|
|
|
23
|
my ($proto, $server, @sequence) = split(m'/+', $self->{source}); |
20
|
2
|
100
|
|
|
|
10
|
defined($self->{runcount}) ? ($self->{runcount}++) : ($self->{runcount} = 0); |
21
|
2
|
|
100
|
|
|
17
|
$self->{val_return} = $sequence[$self->{runcount}] || 0; |
22
|
|
|
|
|
|
|
|
23
|
2
|
|
|
|
|
12
|
return @command; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub _exitcode { |
27
|
2
|
|
|
2
|
|
8
|
my ($self, $exitstatus) = @_; |
28
|
|
|
|
|
|
|
|
29
|
2
|
|
100
|
|
|
197
|
return $self->{val_return} || 0; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |