User story #4066
closed"Manage files and folders" technique: execute a script when a path is absent
Description
in the "Manage files and folders" technique, i would need, not to create a file or a directory or a symlink when the path is absent, but to execute a script.
This could be achieved with:
- a new option for "Set action on file or folder:" which could be called like: "Execute a Modification hook"
- A new multi-line text input "Modification hook - Command(s) to run"
Example of usage:
Pear package installation: if "path of pear package" is absent, then execute "pear discover channel ; pear install package"
Updated by Vincent MEMBRÉ about 11 years ago
- Assignee set to Matthieu CERDA
Interesting proposition. having 'post modification hooks' seems a good idea to have techniques more versatile!
Thank you Fabrice for your proposition!
I'll assigned to Matthieu for now.
Updated by Nicolas CHARLES almost 11 years ago
Fabrice, would you need a new post-modification hook, only in case of creation ?
Or could you live with the actual postmodification hook?
To be more clear, do you want to:
A/ check if a file/path is present, if not execute a command
B/ check if a file/path is present, if not create it, set permission, and execute a command
?
Updated by Jonathan CLARKE almost 11 years ago
- Assignee changed from Matthieu CERDA to Fabrice FLORE-THÉBAULT
Awaiting a response from Fabrice.
Updated by Benoît PECCATTE almost 10 years ago
- Project changed from 24 to Rudder
- Category changed from Techniques to Techniques
Updated by Benoît PECCATTE over 9 years ago
- Assignee deleted (
Fabrice FLORE-THÉBAULT)
Updated by Benoît PECCATTE over 8 years ago
- Target version set to Ideas (not version specific)
Updated by Alexis Mousset almost 3 years ago
This won’t be added to that technique, please use the technique editor for that. If you are missing some capabilities in it, please open a ticket for that need.
Updated by Alexis Mousset almost 3 years ago
- Status changed from New to Rejected