extract deploy into a gem