line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# (c) Jan Gehring |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Rex::Resource::firewall::Provider::base; |
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
14
|
use v5.12.5; |
|
1
|
|
|
|
|
4
|
|
8
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
41
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '1.14.2.2'; # TRIAL VERSION |
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
1
|
|
5
|
use Data::Dumper; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
275
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub new { |
15
|
0
|
|
|
0
|
0
|
|
my $that = shift; |
16
|
0
|
|
0
|
|
|
|
my $proto = ref($that) || $that; |
17
|
0
|
|
|
|
|
|
my $self = {@_}; |
18
|
|
|
|
|
|
|
|
19
|
0
|
|
|
|
|
|
bless( $self, $proto ); |
20
|
|
|
|
|
|
|
|
21
|
0
|
|
|
|
|
|
return $self; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub present { |
25
|
0
|
|
|
0
|
0
|
|
my ( $self, $rule_config ) = @_; |
26
|
0
|
|
|
|
|
|
die "Must be implemented by provider."; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub absent { |
30
|
0
|
|
|
0
|
0
|
|
my ( $self, $rule_config ) = @_; |
31
|
0
|
|
|
|
|
|
die "Must be implemented by provider."; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub enable { |
35
|
0
|
|
|
0
|
0
|
|
my ( $self, $rule_config ) = @_; |
36
|
0
|
|
|
|
|
|
Rex::Logger::debug("enable: Not implemented by provider."); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
sub disable { |
40
|
0
|
|
|
0
|
0
|
|
my ( $self, $rule_config ) = @_; |
41
|
0
|
|
|
|
|
|
Rex::Logger::debug("disable: Not implemented by provider."); |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
sub logging { |
45
|
0
|
|
|
0
|
0
|
|
my ( $self, $rule_config ) = @_; |
46
|
0
|
|
|
|
|
|
Rex::Logger::debug("logging: Not implemented by provider."); |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
1; |