I have some Rake tasks I’d like to use in my Rakefiles. Is it possible to include tasks defined in one rakefile from another rakefile?
Share
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.
Rake files are nothing different than ruby files.
So just load the file A containing the other tasks in your file B and they will be available when B is executed.
For instance, if you put the following code in your Rakefile
then you can create as many
.rakefiles in thetaskssubfolder and call them from the mainRakefile.