add helper function for compiling cookbook metadata