Capistrano 3 - execute command locally

2,751 views
Skip to first unread message

Tom Henrik Aadland

unread,
Dec 13, 2013, 4:48:36 PM12/13/13
to capis...@googlegroups.com
Hi, 

I really like the new Capistrano. 

Problem I came across while migrating old deploy script was what is the equivalent to Capistrano v2 run_locally command ? 


Lee Hambley

unread,
Dec 16, 2013, 9:09:12 AM12/16/13
to capistrano
run_locally still exists.

--
You received this message because you are subscribed to the Google Groups "Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capistrano+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/57561112-8634-434a-9a28-1577d91d05d9%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Tom Henrik Aadland

unread,
Dec 16, 2013, 11:26:06 AM12/16/13
to capis...@googlegroups.com
Certainly it is :) I was looking in the wrong source tree. 
However the syntax has changed a bit so for the record this works great: 

namespace :assets do
   task :testlocally do
      run_locally do
         execute :ls
      end
   end
end
Reply all
Reply to author
Forward
0 new messages