Steve,

Your "my.new_task" is not a task; it's a method that's been added to  
the Actor class, and which can be accessed from other recipe files.  
Thus, you cannot execute it directly from the command-line.

If those methods encapsulate entire tasks, then you might just want  
to create a custom task library that you package with your extension,  
like so:

   Capistrano.configuration(:must_exist).load do
     task :new_extension do
       my.new_task
     end
   end

Then, any recipe that loads your extension will automatically have  
access to a task named "new_extension", which may be called via the  
'cap' command-line, as usual.

- Jamis

On Mar 31, 2007, at 8:21 AM, djsodom wrote:

>
> Hi,
>
> I've created a capistrano extension. I can call these new recipes/
> methods from deploy like so:
>
> task :new_extension do
>    my.new_task
> end
>
> But how/can I call my.new_task directly from the command line, like I
> would a normal cap recipe?
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to