[WIP] Refactor of rake tasks

Working in progress for refactoring of the devutils publish and vendor rake tasks.
as commented above; move the tmp_dir to a `let` and clean it up on an `after`