write a rake task