fab-user
[Top][All Lists]
Advanced

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

Re: [Fab-user] Executing script on localhost without ssh


From: Taras Mankovski
Subject: Re: [Fab-user] Executing script on localhost without ssh
Date: Mon, 7 Sep 2009 14:32:50 -0400

Hey Christian,

I would prefer for this to happen automatically. It would be great if
fabric would determine if paramiko needs to be used, if not then just
execute sudo & run through local.

But in the absence of this functionality, I think your solution is a good one.

Thank you,
Taras

On Mon, Sep 7, 2009 at 10:05 AM, Christian Vest
Hansen<address@hidden> wrote:
> I don't think it is possible to use run, sudo, get & put without
> opening SSH connections, but you can redefine them in terms of local:
>
> def dev():
>  "..."
>  global run, sudo, get, put
>  run = local
>  def sudo(...):
>    local(...)
>
> and so on. Not terribly elegant, but possible.
>
> On Mon, Sep 7, 2009 at 6:56 AM, Taras Mankovski<address@hidden> wrote:
>> Hello There,
>>
>> I created a fabfile that setups a remote server for hosting my project.
>> I wrote it in such a way that I can execute the script on both the
>> production server and the dev server and it should work.
>>
>> I was wandering, is it possible to configure my fabfile in such a way
>> that when i configure dev, it does not go through ssh?
>>
>> I uploaded my fabfile to gist,
>> You're feedback is greatly appreciated.
>>
>> http://gist.github.com/181654
>>
>> Thank you,
>> Taras
>>
>>
>> _______________________________________________
>> Fab-user mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/fab-user
>>
>
>
>
> --
> Venlig hilsen / Kind regards,
> Christian Vest Hansen.
>




reply via email to

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