Skip to content

Commit

Permalink
Rename hook function
Browse files Browse the repository at this point in the history
  • Loading branch information
ferki committed Jul 10, 2021
1 parent 5247d3c commit ff14fc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist.ini
Expand Up @@ -93,7 +93,7 @@ untracked_files = warn
[TestRelease]
[Test::Kwalitee]
[Test::Pod::Coverage::Configurable]
also_private = copy_file
also_private = impostor_hook
also_private = get_impostor_for
also_private = get_impostor_directory
[Git::Commit / GeneratedFiles]
Expand Down
4 changes: 2 additions & 2 deletions lib/Rex/Hook/File/Impostor.pm
Expand Up @@ -15,9 +15,9 @@ use Sys::Hostname;

our $VERSION = '9999';

register_function_hooks { before => { file => \&copy_file, }, };
register_function_hooks { before => { file => \&impostor_hook, }, };

sub copy_file {
sub impostor_hook {
my ( $managed_path, @opts ) = @_;

my $impostor_path = get_impostor_for($managed_path);
Expand Down

0 comments on commit ff14fc3

Please sign in to comment.