← Back to team overview

quickly-talk team mailing list archive

Re: Fwd: Fwd: Proposal: Abstract hosting service from project templates.

 

I think the idea is any command can have pre- or post- hooks. Not just create.

On 9 August 2012 18:10, tony byrne <tony.badwolf@xxxxxxxxx> wrote:
> Hi Didier
>  That sounds just what I need. Can I request you leave -t available ?
> quickly -t <template> add <command>
> allows a script to run from any template at any time on any project.
> Alternatively allow the post_create.py to be called at any time
> (effectively the same).
>
>  I know this flexibility is not a quickly goal, however consider the
> case where you are developing a post_create.py. The need for it will
> probably occur during a project development. So it would be nice to
> call it and debug it then. If it can only be called during create the
> developer will be slowed by this long loop.
>
> quickly create <template> <project> (relatively slow)
> examine project for bugs
> edit post_create.py
> close nautilus <project> folder (tedious)
> close editor (tedious)
> delete project folder
> quickly create <template> <project> (relatively slow)
>
> A better approach would be
> quickly create <template> <project> (relatively slow)
> cd <project>
>
> # begin loop
> create post_create.py
> call post_create.py
> examine project for bugs
> bzr revert
> edit post_create.py
>
> This could be achieved by using the same api for post_create.py that
> quickly add uses,  allowing -t and developing post_create.py inside
> any template.
>
> On 09/08/2012, Didier Roche <didrocks@xxxxxxxxxx> wrote:
>> Le 09/08/2012 14:19, tony byrne a écrit :
>>> Hi Didier
>>>   I have a use case for -t. I have a command in my toolbox template
>>> that removes launchpad from a project. This way my ubuntu-application
>>> template can remain up to date and it's easy to remove launuchpad from
>>> a project.
>>>
>>> quickly create ubuntu-application foo
>>> cd foo
>>> quickly -t toolbox nolaunchpad
>>>
>>> If you remove -t what workflow should I use to patch a project to
>>> differ slightly from stock template but keep getting bug fixes to the
>>> template?
>>
>> It seems what you want to have is some kind of post_create hooks.
>> We discussed in the first hangout to be able to have hooks per projects
>> and per templates.
>>
>> I think in you case, you will have a hook like <folder that needs to be
>> determinated>/ubuntu-application/post_create.py
>> Meaning that each time you run quickly create ubuntu-application, this
>> script will be run.
>>
>> Does it answer your need?
>>
>> (Other use case for hooks are: quickly release -> tweet about the new
>> release that just happen and how awesome it is :)).
>>
>> Cheers,
>> Didier
>>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~quickly-talk
> Post to     : quickly-talk@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~quickly-talk
> More help   : https://help.launchpad.net/ListHelp



-- 
Alistair Buxton
a.j.buxton@xxxxxxxxx


References