Re: [Fab-user] sudo and put

2010-02-17 Thread Bram Enning
Ok, thanks!

On Tue, Feb 16, 2010 at 4:01 PM, Jeff Forcier j...@bitprophet.org wrote:

 Hi Bram,

 Right now that's the best way to do it, but we have plans for baking
 that sort of thing into put() itself.

 You can also use fabric.contrib.files.upload_template() (and just
 don't supply a template context dict, or an empty one) which has a
 use_sudo option. Again, though, this is an ugly workaround and put()
 will get upgraded to be better, in the nearish future.

 Best,
 Jeff

 On Mon, Feb 15, 2010 at 1:34 PM, Bram Enning bramenn...@gmail.com wrote:
  Hi,
  I'm just starting with Fabric so please be patient.
  I want to copy 'apache2.conf' from local to a host. Obviously you need to
 be
  root to do so, but how can this be achieved easily. Now I copy the file
 to
  the server, sudo and mv the file. It works but it's not pretty.
 
  Kind regears
 
  ___
  Fab-user mailing list
  Fab-user@nongnu.org
  http://lists.nongnu.org/mailman/listinfo/fab-user
 
 



 --
 Jeff Forcier
 Unix sysadmin; Python/Ruby developer
 http://bitprophet.org

___
Fab-user mailing list
Fab-user@nongnu.org
http://lists.nongnu.org/mailman/listinfo/fab-user


Re: [Fab-user] sudo and put

2010-02-16 Thread Jeff Forcier
Hi Bram,

Right now that's the best way to do it, but we have plans for baking
that sort of thing into put() itself.

You can also use fabric.contrib.files.upload_template() (and just
don't supply a template context dict, or an empty one) which has a
use_sudo option. Again, though, this is an ugly workaround and put()
will get upgraded to be better, in the nearish future.

Best,
Jeff

On Mon, Feb 15, 2010 at 1:34 PM, Bram Enning bramenn...@gmail.com wrote:
 Hi,
 I'm just starting with Fabric so please be patient.
 I want to copy 'apache2.conf' from local to a host. Obviously you need to be
 root to do so, but how can this be achieved easily. Now I copy the file to
 the server, sudo and mv the file. It works but it's not pretty.

 Kind regears

 ___
 Fab-user mailing list
 Fab-user@nongnu.org
 http://lists.nongnu.org/mailman/listinfo/fab-user





-- 
Jeff Forcier
Unix sysadmin; Python/Ruby developer
http://bitprophet.org


___
Fab-user mailing list
Fab-user@nongnu.org
http://lists.nongnu.org/mailman/listinfo/fab-user