Unfortunately this doesn't invoke the task the second time because rake thinks it has already invoked it. Even though the arguments differ. Stupid rake. As discussed, I've rebased over the top.