What Lee said. The put helper (and related upload/download/get helpers) all use SFTP or SCP to transfer the file, which are not shell commands, and so are not possible to use with sudo. (Well, SCP is technically a shell command, but it's not clear how easy it would be adapt to work with sudo.)
SFTP is a protocol on top of SSH, and so is done solely by interacting with an SFTP server process, and not by invoking commands. - Jamis On Sat, Feb 7, 2009 at 12:09 PM, Lee Hambley <[email protected]> wrote: > Sean, > > We solve this problem by ensuring that .conf apache files are also loaded > from the current/ directory of our app, so you only need sudo to alter the > system's apache config once. > The alternative is to put() the file, and sudo symlink it. > - Lee > > 2009/2/7 Sean <[email protected]> >> >> Is it possible to use the put helper with sudo? Basically, I've >> created an Apache config file using an ERB template and would like to >> put it on the server during my deploy, but I need to use sudo to allow >> the file to be created in the directory where it needs to go. >> >> I know how to create the file from the template, and I know how to use >> the put helper, I just don't know how to force it to use sudo. >> >> Thanks, >> Sean >> > > > > > --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
