line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package XML::SRS::Server::List; |
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
1472
|
use Moose; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
use PRANG::Graph; |
6
|
|
|
|
|
|
|
use XML::SRS::Zone; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
use Moose::Util::TypeConstraints; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
use XML::SRS::Server; |
11
|
|
|
|
|
|
|
has_element 'nameservers' => |
12
|
|
|
|
|
|
|
is => "rw", |
13
|
|
|
|
|
|
|
isa => "ArrayRef[XML::SRS::Server]", |
14
|
|
|
|
|
|
|
xml_nodeName => "Server", |
15
|
|
|
|
|
|
|
; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
coerce __PACKAGE__ |
18
|
|
|
|
|
|
|
=> from 'ArrayRef[Str]' |
19
|
|
|
|
|
|
|
=> via { |
20
|
|
|
|
|
|
|
__PACKAGE__->new( |
21
|
|
|
|
|
|
|
nameservers => [ |
22
|
|
|
|
|
|
|
map { |
23
|
|
|
|
|
|
|
XML::SRS::Server->new( fqdn => $_ ); |
24
|
|
|
|
|
|
|
} @$_ |
25
|
|
|
|
|
|
|
], |
26
|
|
|
|
|
|
|
); |
27
|
|
|
|
|
|
|
}; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
coerce __PACKAGE__ |
30
|
|
|
|
|
|
|
=> from 'ArrayRef[HashRef]' |
31
|
|
|
|
|
|
|
=> via { |
32
|
|
|
|
|
|
|
__PACKAGE__->new( |
33
|
|
|
|
|
|
|
nameservers => [ |
34
|
|
|
|
|
|
|
map { |
35
|
|
|
|
|
|
|
XML::SRS::Server->new( $_ ); |
36
|
|
|
|
|
|
|
} @$_ |
37
|
|
|
|
|
|
|
], |
38
|
|
|
|
|
|
|
); |
39
|
|
|
|
|
|
|
}; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
with 'XML::SRS::Node'; |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |