I thought by doing
file 'myfile' => [ :some_task ]
the task would not be run since the file already exists, but when the file does exist the task runs. So is there a way to have the task not run when the file exists?
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.
It depends. what
:some_taskis.:some_taskis a Symbol, no String. It seems,myfiledepends not on another file, but on a task.If you have this situation:
the question if
:some_taskis newer, makes no sense. It is a task to be executed always.And if
myfilehas a prerequsite, that must be executed, thenmyfilewill be created.