line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# (c) Jan Gehring |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Rex::Interface::File::Base; |
6
|
|
|
|
|
|
|
|
7
|
15
|
|
|
15
|
|
261
|
use v5.12.5; |
|
15
|
|
|
|
|
109
|
|
8
|
15
|
|
|
15
|
|
144
|
use warnings; |
|
15
|
|
|
|
|
95
|
|
|
15
|
|
|
|
|
3673
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '1.14.2.2'; # TRIAL VERSION |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub new { |
13
|
189
|
|
|
189
|
0
|
773
|
my $that = shift; |
14
|
189
|
|
33
|
|
|
2059
|
my $proto = ref($that) || $that; |
15
|
189
|
|
|
|
|
763
|
my $self = {@_}; |
16
|
|
|
|
|
|
|
|
17
|
189
|
|
|
|
|
606
|
bless( $self, $proto ); |
18
|
|
|
|
|
|
|
|
19
|
189
|
|
|
|
|
742
|
return $self; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
0
|
0
|
|
sub open { die("Must be implemented by Interface Class."); } |
23
|
0
|
|
|
0
|
0
|
|
sub read { die("Must be implemented by Interface Class."); } |
24
|
0
|
|
|
0
|
0
|
|
sub write { die("Must be implemented by Interface Class."); } |
25
|
0
|
|
|
0
|
0
|
|
sub close { die("Must be implemented by Interface Class."); } |
26
|
0
|
|
|
0
|
0
|
|
sub seek { die("Must be implemented by Interface Class."); } |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |