Ah, ok.. That makes sense now.
thanks,
steve.
On Apr 30, 7:33 pm, Jamis Buck <[EMAIL PROTECTED]> wrote:
> Steve,
>
> Ah, yeah, that's confusing. Here's what will work:
>
> deploy.app.desc "Start mongrel cluster"
> deploy.app.task ...
>
> Or
>
> deploy.namespace :app do
> desc "Start mongrel cluster"
> task :start ...
> end
>
> I'll rethink the decision to put "desc" as a method of the namespace.
>
> - Jamis
>
> On Apr 30, 2007, at 3:28 PM, Steve wrote:
>
>
>
> > I'm attempting to setup up Mongrel cluster tasks in a version 2.0
> > deploy.rb using the new namespace shorthand as follows:
>
> > desc "Start mongrel cluster"
> > deploy.app.task :start do
> > sudo "mongrel_rails cluster::start -C #{mongrel_conf}"
> > end
>
> > For some reason when I run
>
> > cap -T
>
> > the tasks don't show up, as the desc isn't being picked up.
>
> > cap -Tv shows the tasks, but with blank description.
>
> > The tasks work fine.
>
> > Question is:
>
> > Where do I place the desc in order for cap -T to properly see them as
> > non-internal tasks?
>
> > Many thanks,
>
> > steve.
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---