I'm more of the mind that doing this sort of thing is a smell than anything, but if that floats your boat, gem_exec seems fine.