Specs for rake tasks sound like a good idea. Especially for the size of this task.

The code could probably do with a bit of cleaning, this is just the first iteration. Happy to pair on this. Let's work together over the weekend? I'm gonna chill on Saturday but could catch up in the evening or do Sunday. You?