tdreyno/middleman — pull request #134 by arronmabrey (2011-10-16 01:41:08+00:00)
Title: Fixing: cli-clean-option.

Turns out, I was not catching all the files being made, so I moved the dequeue call right before the file is acutely created, that solved that.

The next issues was that the clean_up was running before the build was truly finished, so I wrapped it up in a lambda and shoved it into the after_run hook so it gets called at the end.

Everything should be good now, all the tests pass.