On Mon, Feb 1, 2010 at 3:14 PM, Jim Gay <[email protected]> wrote: > If you've got specs for your changes to script/extension (which skips > the migrate and update tasks if they don't exist) go ahead and push > them into the master branch. > I meant to take a look at your work on that a long time ago, but > haven't gotten around to it.
i'm pretty sure i abandoned that before i got it to do anything useful like checking for tasks before running them. in the time since the installer was added it seems this comes up rarely enough that complicating things is probably not worth it. perhaps something in the creating extensions part of the wiki that informs authors their extension will spit up errors if they don't provide (at least empty) tasks would help. now that i think about it again though the simplest solution seems like it would be to stub out rake tasks like "This extension does not have a migrate/update task" upon extension creation. at least that way authors who forget about it wouldn't these have error messages. > I'm personally in favor of a single "install" task. and a single "uninstall" task! :) > On Mon, Feb 1, 2010 at 4:02 PM, Ming Pan <[email protected]> wrote: >> Thanks so much John! >> >> Now I went through the "migrate" step successfully, but it gave errors >> on the "update" step: >> >> (in /home/lovebaob/radapp) >> rake aborted! >> Don't know how to build task 'radiant:extensions:mailer:update' >> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1704:in `[]' >> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2026:in `invoke_task' >> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in `top_level' >> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in `each' >> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in `top_level' >> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in >> `standard_exception_handling' >> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1999:in `top_level' >> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1977:in `run' >> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in >> `standard_exception_handling' >> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1974:in `run' >> /usr/lib/ruby/gems/1.8/gems/rake-0.8.4/bin/rake:31 >> /usr/bin/rake:19:in `load' >> /usr/bin/rake:19 >> >> Is this "update" step required by the mailer extension? I reloaded my >> admin/extensions page and mailer is not there. >> >> ming >> _______________________________________________ >> Radiant mailing list >> Post: [email protected] >> Search: http://radiantcms.org/mailing-list/search/ >> List Site: http://lists.radiantcms.org/mailman/listinfo/radiant >> Radiant: http://radiantcms.org >> Extensions: http://ext.radiantcms.org >> > > > > -- > Jim Gay > Saturn Flyer LLC > [email protected] > http://www.saturnflyer.com > 571-403-0338 > _______________________________________________ > Radiant mailing list > Post: [email protected] > Search: http://radiantcms.org/mailing-list/search/ > List Site: http://lists.radiantcms.org/mailman/listinfo/radiant > Radiant: http://radiantcms.org > Extensions: http://ext.radiantcms.org > _______________________________________________ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ List Site: http://lists.radiantcms.org/mailman/listinfo/radiant Radiant: http://radiantcms.org Extensions: http://ext.radiantcms.org
