line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::OpenSSH::Parallel::Constants; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = '0.12'; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
36
|
|
6
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
31
|
|
7
|
1
|
|
|
1
|
|
5
|
use Carp; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
72
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
6
|
use Net::OpenSSH::Constants qw(:all); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
269
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
require Exporter; |
12
|
|
|
|
|
|
|
our @ISA = qw(Exporter); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our %EXPORT_TAGS = %Net::OpenSSH::Constants::EXPORT_TAGS; |
15
|
|
|
|
|
|
|
$EXPORT_TAGS{error} = [@{$EXPORT_TAGS{error}}]; |
16
|
|
|
|
|
|
|
delete $EXPORT_TAGS{all}; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
our %error = ( OSSH_JOIN_FAILED => 100, |
19
|
|
|
|
|
|
|
OSSH_ABORTED => 101, |
20
|
|
|
|
|
|
|
OSSH_GOTO_FAILED => 102 ); |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
our %on_error = ( OSSH_ON_ERROR_IGNORE => 201, |
23
|
|
|
|
|
|
|
OSSH_ON_ERROR_DONE => 202, |
24
|
|
|
|
|
|
|
OSSH_ON_ERROR_ABORT => 203, |
25
|
|
|
|
|
|
|
OSSH_ON_ERROR_ABORT_ALL => 204, |
26
|
|
|
|
|
|
|
OSSH_ON_ERROR_RETRY => 205 ); |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
for my $hash (qw(error on_error)) { |
29
|
1
|
|
|
1
|
|
5
|
no strict 'refs'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
161
|
|
30
|
|
|
|
|
|
|
for my $key (keys %$hash) { |
31
|
|
|
|
|
|
|
my $value = $hash->{$key}; |
32
|
|
|
|
|
|
|
*{$key} = sub () { $value }; |
33
|
|
|
|
|
|
|
push @{$EXPORT_TAGS{$hash}}, $key |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
our @EXPORT_OK = map { @{$EXPORT_TAGS{$_}} } keys %EXPORT_TAGS; |
38
|
|
|
|
|
|
|
$EXPORT_TAGS{all} = [@EXPORT_OK]; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
__END__ |