Rake files are no different from ruby files. So just upload file A containing other tasks to your file B, and they will be available when B. is completed.
For example, if you put the following code in your Rakefile
Dir['tasks/*.rake'].each { |file| load(file) }
You can create as many .rakefiles in a subfolder tasksand call them from the main one Rakefile.
source
share