Whoops - nevermind - looks like I had a problem with my restart command - 
not with capistrano/sudo.

For the record - when I run:

  puts capture "sudo whoami"

It returns 'root' - just like I expect.


On Tuesday, November 12, 2013 9:50:41 AM UTC-8, Andy L wrote:
>
> My restart task requires sudo.  I've got the sudoers all configured so 
> passwords are not required.  I'm just not sure how to invoke my restart 
> command with sudo.
>
> I tried:
>   
>   execute "sudo /my/restart/command"
>
> and:
>
>   execute :sudo, "/my/restart/command"
>
> No luck so far.  Can someone provide tips or working examples that show 
> how to use sudo with Cap3?
>

-- 
-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en
--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to