line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package NetApp::Volume::Source; |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
our $VERSION = '500.002'; |
5
|
|
|
|
|
|
|
$VERSION = eval $VERSION; ## no critic: StringyEval |
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
8
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
46
|
|
8
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
44
|
|
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
6
|
use Class::Std; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
12
|
|
11
|
1
|
|
|
1
|
|
147
|
use Params::Validate qw( :all ); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
510
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
{ |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
my %hostname_of :ATTR( get => 'hostname' ); |
16
|
|
|
|
|
|
|
my %volume_of :ATTR( get => 'volume' ); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub BUILD { |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
0
|
0
|
|
my ($self,$ident,$args_ref) = @_; |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
|
|
|
my @args = %$args_ref; |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
|
|
|
my (%args) = validate( @args, { |
25
|
|
|
|
|
|
|
hostname => { type => SCALAR }, |
26
|
|
|
|
|
|
|
volume => { type => SCALAR }, |
27
|
|
|
|
|
|
|
}); |
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
|
|
|
$hostname_of{$ident} = $args{hostname}; |
30
|
0
|
|
|
|
|
|
$volume_of{$ident} = $args{volume}; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |