fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] First address@hidden, then address@hidden ...


From: Thomas Güttler
Subject: Re: [Fab-user] First address@hidden, then address@hidden ...
Date: Mon, 14 Oct 2013 10:02:44 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:19.0) Gecko/20130126 Thunderbird/19.0

Hi,

I created a decorator to solve this:

https://gist.github.com/guettli/6972365

The user name must not be in the source code, since it can be different.

Works fine.


Am 11.10.2013 23:26, schrieb Jens Rantil:
Hi Thomas,

I would probably have one task that make two calls to `execute`[1], one for the 
root user execution, and one for the
user user execution.

[1] 
http://docs.fabfile.org/en/1.8/api/core/tasks.html?highlight=execute#fabric.tasks.execute

Here's a small example: https://gist.github.com/JensRantil/6942269 I haven't executed it, 
but it should be "fairly"
runnable ;) Possibly, you might have to specify a host for executing the 
`supertask` with.

Cheers,
Jens


On Thu, Oct 10, 2013 at 10:17 AM, Thomas Güttler <address@hidden 
<mailto:address@hidden>> wrote:

    Hi,

    I found several ways to solve this:

    first connect as address@hidden (for example: create user "user").

    Then connect as address@hidden

    This should be done in one task.

    Please tell me the simplest or best way to do this.

    Thank you.

    _________________________________________________
    Fab-user mailing list
    address@hidden <mailto:address@hidden>
    https://lists.nongnu.org/__mailman/listinfo/fab-user 
<https://lists.nongnu.org/mailman/listinfo/fab-user>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]