Add rake example for hooks api