Just insert #{sudo} wherever you'd usually invoke sudo. E.g.:
session.when "in?(:app01)", "#{sudo} /etc/init.d/apStart app01"
- Jamis
On Oct 3, 2008, at 11:54 AM, jrice wrote:
>
> When using the parallel helper, is there a way to run the commands as
> sudo? For example,
>
> task :start_all do
> parallel do |session|
> session.when "in?(:app01)", "/etc/init.d/apStart app01"
> session.when "in?(:app02)", "/etc/init.d/apStart app02"
> end
> end
>
> I would like the command executed by session.when to execute as if it
> where sudo "/etc/init.d/apStart..."
>
> >
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---