From: Mohit Sindhwani Date: 2008-08-13T02:36:29+09:00 Subject: Re: Interactive Rake Tasks Mohit Sindhwani wrote: > Steve Martocci wrote: >> Anyone have a guide or a good example gem/rake task that prompts the >> user for input and does logic based on it? >> >> I want to write an interactive installer for a plugin. >> > Might be overkill but Radiant CMS has a task called rake dn:bootstrap > that asks some questions at the end. Would that help? > Looking through the source for Radiant shows that you should see: http://dev.radiantcms.org/browser/trunk/radiant/lib/tasks/database.rake which connects to: http://dev.radiantcms.org/browser/trunk/radiant/lib/radiant/setup.rb Hope this helps. Cheers, Mohit. 8/13/2008 | 1:38 AM.