line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HH::Unispool::Config::Scope; |
2
|
|
|
|
|
|
|
|
3
|
6
|
|
|
6
|
|
119
|
use 5.006; |
|
6
|
|
|
|
|
21
|
|
|
6
|
|
|
|
|
209
|
|
4
|
6
|
|
|
6
|
|
112
|
use strict; |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
174
|
|
5
|
6
|
|
|
6
|
|
31
|
use warnings; |
|
6
|
|
|
|
|
10
|
|
|
6
|
|
|
|
|
171
|
|
6
|
6
|
|
|
6
|
|
27
|
use AutoLoader qw(AUTOLOAD); |
|
6
|
|
|
|
|
26
|
|
|
6
|
|
|
|
|
34
|
|
7
|
6
|
|
|
6
|
|
167
|
use Error qw(:try); |
|
6
|
|
|
|
|
10
|
|
|
6
|
|
|
|
|
35
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# Used by _value_is_allowed |
10
|
|
|
|
|
|
|
our %ALLOW_ISA = ( |
11
|
|
|
|
|
|
|
); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
# Used by _value_is_allowed |
14
|
|
|
|
|
|
|
our %ALLOW_REF = ( |
15
|
|
|
|
|
|
|
); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
# Used by _value_is_allowed |
18
|
|
|
|
|
|
|
our %ALLOW_RX = ( |
19
|
|
|
|
|
|
|
'scope' => [ '^.+$' ], |
20
|
|
|
|
|
|
|
); |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
# Used by _value_is_allowed |
23
|
|
|
|
|
|
|
our %ALLOW_VALUE = ( |
24
|
|
|
|
|
|
|
); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
# Used by _initialize |
27
|
|
|
|
|
|
|
our %DEFAULT_VALUE = ( |
28
|
|
|
|
|
|
|
'scope' => ['_Server_', '_Script_', '_Network_', 'System=*'], |
29
|
|
|
|
|
|
|
); |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
# Unispool scope order |
32
|
|
|
|
|
|
|
our %USP_SCOPE_ORDER = (); |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
# Package version |
35
|
|
|
|
|
|
|
our ($VERSION) = '$Revision: 0.3 $' =~ /\$Revision:\s+([^\s]+)/; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
# Unispool scope order |
38
|
|
|
|
|
|
|
our @USP_SCOPE_ORDER = qw( _Server_ _Script_ _Network_ _Local_ ); |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
{ |
41
|
|
|
|
|
|
|
my $i = 0; |
42
|
|
|
|
|
|
|
foreach my $scope (@USP_SCOPE_ORDER) { |
43
|
|
|
|
|
|
|
$USP_SCOPE_ORDER{$scope} = $i; |
44
|
|
|
|
|
|
|
$i ++; |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
1; |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
__END__ |