Thanks, I guess so.

P

On 11 May, 00:24, Jamis Buck <[EMAIL PROTECTED]> wrote:
> That's...not recommended. Rake syntax and cap syntax are (perhaps
> unfortunately) very similar, but they are not identical. Also,
> semantically, Rake tasks and cap tasks are very different. Rake works
> by building a dependency graph and executing tasks in the order that
> satisfies the dependendies. It's syntax supports those semantics.
> Capistrano does not work in a dependency-directed manner, and will
> not understand Rake tasks that use them. In fact, I'll be very
> surprised if loading a Rakefile from a capfile works for more than
> extremely trivial rake tasks.
>
> You need to just know that Cap and Rake are two independent,
> different applications. If you want to call a Rake task from
> Capistrano, use system():
>
>    system("rake foo")
>
> - Jamis
>
> On May 10, 2007, at 11:33 AM, prpht9 wrote:
>
>
>
> > Ok, I did the following...
>
> > rails application
> > cd application
> > cap -A .
> > vi config/deploy.rb
> > -> added the following at the top of the file: load "./Rakefile"
> > vi Rakefile
> > -> any tasks added to Rakefile will show up in the following command
> > cap show_tasks
>
> > that's it. My Rakefile tasks show up.
>
> > -prpht9
>
> > On May 10, 9:02 am, "[EMAIL PROTECTED]"
> > <[EMAIL PROTECTED]> wrote:
> >> Thanks!
>
> >> I have a rake file with some tasks that use Rails environment that I
> >> want to invoke from cap.
>
> >> The simplest way is to run `rake my_rakefile` inside my cap task, but
> >> I want to know if there are a way to see rake rails tasks from cap.
>
> >> Now I'm using `rake blah blah`
>
> >> P
>
> >> On 10 May, 09:37, prpht9 <[EMAIL PROTECTED]> wrote:
>
> >>> I would include the hostname of your local machine in it's own
> >>> role so
> >>> you can use something like this...
>
> >>> role :role_your_local_machine_is_in, "hostname"
>
> >>> task :local_rake_task_name, :roles => :role_your_local_machine_is_in
> >>> do
> >>>   # run your commands here.
> >>> end
>
> >>> good luck
>
> >>> -prpht9
>
> >>> On 9 May, 14:25, "[EMAIL PROTECTED]"
> >>> <[EMAIL PROTECTED]>
> >>> wrote:
>
> >>>> Hi
>
> >>>> Im trying to automate remote process via cap 2.0, works fine,
> >>>> but now
> >>>> I need to run some rake task on local machine where I run cap, what
> >>>> could be the better way to do this?
>
> >>>> Thanks
>
> >>>> P


--~--~---------~--~----~------------~-------~--~----~
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