la-haute-societe / ssh-deploy-release

Deploy releases over SSH with rsync, archive ZIP / TAR, symlinks, SCP ...
https://www.npmjs.com/package/ssh-deploy-release
MIT License
36 stars 10 forks source link

Add a callback right before linking to the new release #12

Closed nstCactus closed 5 years ago

nstCactus commented 5 years ago

It's not the same as onBeforeLink which is called before creating symlinks for shared elements.

This one should be called right before replacing the current release symlink (just before this line).

It would allow the user to execute actions (ex: fine tuning permissions) once the release has been fully assembled but before it goes live so that when it does, it's fully functional right away.