Rex::Hook::File::Diff - show diff of changes for files managed by Rex
version v0.4.0
use Rex::Hook::File::Diff;
This module allows Rex to show a diff of changes for the files managed via its built-in file manipulation commands which rely on the file command as a backend:
- file
- delete_lines_matching
- delete_lines_according_to
- append_if_no_such_line
- append_or_amend_line
- sed
It prefers to use the diff
utility on non-Windows managed endpoints, if available.
This module does not do any error checking (yet).
This module does not require any configuration, nor does it use any environment variables.
See the included cpanfile
.
Requires the diff
utility to show the diff for remote file operations.
There are no known incompatibilities with other modules.
There are no known bugs. Make sure they are reported.
Upload hook support is not implemented (yet), so diff is not shown upon file uploads when using the source
option with the file command (or the upload command directly).
Ferenc Erki <[email protected]>
This software is copyright (c) 2020-2022,2024 by Ferenc Erki.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.