On Fri, Oct 2, 2009 at 2:31 PM, Jeff Forcier <
address@hidden> wrote:
> Hi Bruno,
>
> For reference, Github is not really the primary Fabric repository, so
> if you ever want to get a clone of the code and GH is down, you can
> hit up the canonical repo at
git.fabfile.org (as mentioned here:
>
http://docs.fabfile.org/0.9/installation.html#source-code-checkouts)
>
> Github does make collaboration easier, but it's not required :)
> Especially not when they are having major post host-switch issues...
>
> Regarding your changes, they look pretty good -- thanks for taking the
> time to do this. I'll make a note of your patch and will probably
> incorporate it into master once 0.9 final comes out.
>
> Best,
> Jeff
>
> On Fri, Oct 2, 2009 at 2:54 PM, Bruno Clermont <
address@hidden> wrote:
>> Hi everyone,
>> for some deployments, I had to write new operations and
>> I decided to implement them into fabric.contrib.files.
>> I wanted to share these changes, in case it's interesting enough to be
>> integrated.
>> Github is telling me that fabric's "Repository temporarily unavailable",
>> I can't fork it, so here is it:
>>
>> Summary of changes:
>>
>> * new function is_dir(remote_path) : code from some load_template().
>> * new function backup(remote_path): also from load_template(), to force the
>> creation of .bak of a remote file|dir.
>> * new function backup_and_put(local_path, remote_path): same syntax of put() it
>> just call backup() before.
>> * put_from_text(text, remote_path): sometimes, I want to create a remote file
>> from a string in memory only, it automate the creation of a temporary
>> file.
>> * load_template() code that used to do backup and is_dir had been replaced to
>> use the new functions to simplify it.
>>
>> maybe, put() can have an optional backup=True|False parameter instead
>> this new function.
>>
>> the patch is against master
>>
>> _______________________________________________
>> Fab-user mailing list
>>
address@hidden
>>
http://lists.nongnu.org/mailman/listinfo/fab-user
>>
>>
>