I have a series of rake tasks that seeds several objects and perform certain actions based on data in a spreadsheet. The very first task in the series, though, validates the spreadsheet and checks that all the data is in the correct form. I have a task that runs all the tasks in the series one by one, but I want to alter it so that it will abort all tasks after the sheet validation if the sheet is invalid, how can I do this?
I essentially want to have some form of communication between the sheet validation task and the overarching task running all tasks. What's the ruby way to do this?