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
- Host: GitHub
- URL: https://github.com/ferki/rex-hook-file-impostor
- Owner: ferki
- License: other
- Created: 2020-09-24T07:59:48.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-08-17T14:40:19.000Z (almost 2 years ago)
- Last Synced: 2025-01-19T17:26:42.386Z (over 1 year ago)
- Topics: rex
- Language: Perl
- Homepage: https://metacpan.org/release/Rex-Hook-File-Impostor
- Size: 54.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.pod
- Changelog: Changes
- License: LICENSE
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