Adding hook to rinary launch to ruby mode