<!--
Thank you for contributing to this project!
-->
<!--
Replace this comment with a description of your pull request.
-->
<!--
Replace this comment with the list of issues or n/a.
Use format:
Fixes #123
Fixes #124
-->
<!--
Thank you for contributing to this project!
-->
<!--
Replace this comment with a description of your pull request.
-->
<!--
Replace this comment with the list of issues or n/a.
Use format:
Fixes #123
Fixes #124
-->
Add a extlib::commit_date
function to return the commit date of a file or directory in the current environment.
It seems every module has a different way of putting the This is a puppet managed file don't edit it in their templates. They are all a bit different and each one says slightly different things. This is my attempt to get something a bit more unified in place so folks can have greater consistency in their modules.
Previously the mkdir, split, path_join functions
took arrays instead of allowing the user to pass in
unlimited values via the extra args type. This now allows
for extra args and maintains backwards compatability
with prior implementation.
I went down a bit of a rabbit whole looking at simplifying the dirsplit function and have created a new function to normalise paths and used it to i simplify the pathjoin and dir_split functions. however i am not that familiar with windows so not sure if i have got everything correct, spec test pass and thats about as far as i can go.
I till need to write spec test for the new function but i thought i would send this PR now to see if there is any early feedback. also i wonder if we should rename these functions under the same name space e.g.
* extlib::dir::join
* extlib::dir::clean
* extlib::dir::split
or extlib::path::*