How can I rename a file with chef?
In the chef doc I found only:
- create
- create_if_missing
- delete
- touch
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use ruby_block and inside use ::File.Rename(src,dst). Chef framework doesn’t have file rename (or at least didn’t had until 0.10.18).
Just an example: