I have this main Rake task
namespace :crawler do
task main: :environment do
Rake::Task['tester:first'].execute
Rake::Task['tester:second'].execute
Rake::Task['tester:third'].execute
end
end
Every task runs a piece of code that checks for a value to be present, if it is not then exit the task and continue with the next one. Actually the code is the following but it is not working
def check(value)
if !value.nil?
return value
else
exit
end
end
When I reach the Exit part, the whole program exits,and the other tasks don't get executed.