| 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 |  | 16 | use v5.12.5; | 
|  | 1 |  |  |  |  | 4 |  | 
| 8 | 1 |  |  | 1 |  | 7 | use warnings; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 55 |  | 
| 9 |  |  |  |  |  |  |  | 
| 10 |  |  |  |  |  |  | our $VERSION = '1.14.2.3'; # TRIAL VERSION | 
| 11 |  |  |  |  |  |  |  | 
| 12 | 1 |  |  | 1 |  | 7 | use Data::Dumper; | 
|  | 1 |  |  |  |  | 7 |  | 
|  | 1 |  |  |  |  | 268 |  | 
| 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; |