An open API service indexing awesome lists of open source software.

https://github.com/ferki/rex-hook-file-impostor

execute Rex file management commands on a copy of the managed path
https://github.com/ferki/rex-hook-file-impostor

rex

Last synced: 2 months ago
JSON representation

execute Rex file management commands on a copy of the managed path

Awesome Lists containing this project

README

          

=pod

=encoding UTF-8

=for :stopwords Ferenc Erki CPAN sponsorware

=head1 NAME

Rex::Hook::File::Impostor - execute Rex file management commands on a copy of the managed path

=head1 VERSION

version v0.2.0

=head1 SYNOPSIS

use Rex::Hook::File::Impostor;

=head1 DESCRIPTION

This module makes L execute file management commands on a copy of the managed path instead of the original one.

This could be particularly useful when it is loaded conditionally to be combined with other modules. For example together with L, it could be used to show a diff of file changes without actually changing the original file contents.

It works by installing a L for file commands, which makes a copy of the original file into a temporary directory, and then overrides the original arguments of the L.

=head1 DIAGNOSTICS

This module does not do any error checking (yet).

=head1 CONFIGURATION AND ENVIRONMENT

It uses the same temporary directory that is used by Rex. Therefore it can be configured with L:

Rex::Config->set_tmp_dir($tmp_dir);

This module does not use any environment variables.

=head1 DEPENDENCIES

See the included C.

=head1 INCOMPATIBILITIES

There are no known incompatibilities with other modules.

=head1 BUGS AND LIMITATIONS

There are no known bugs. Make sure they are reported.

=head1 AUTHOR

Ferenc Erki

=head1 COPYRIGHT AND LICENSE

This software is Copyright (c) 2020-2022,2024,2026 by Ferenc Erki.

This is free software, licensed under:

The GNU Lesser General Public License, Version 3, June 2007

Early versions of this software were L. Thanks to L, it is now available to everyone!

=cut