On 05/16/2012 01:50 PM, no-re...@cfengine.com wrote:
> Forum: CFEngine Help
> Subject: git promises
> Author: analogue
> Link to topic: https://cfengine.com/forum/read.php?3,25954,25954#msg-25954
>
> Hi,
>
> I'm looking for some bundle that would allow me to write promises for some 
> git cloned repository.
>
> e.g.:
> "/some/git/repo"
>    origin =>  "g...@github.com:user/repo.git",
>    branch =>  "version-1.2";
>
> Has someone written something like this?
> Is it even possible to write?


You can write something like that but there are no native promises for it.

It will probably be best to use a parameterized bundle.

You could define it something like this

vars:
     "git[/some/git/repo][origin]"
         string => "g...@github.com:user/repo.git";
     "git[/some/git/repo][branch]"
         string => ""version-1.2";

Then pass that to your bundle where you can pick it apart and run 
commands. Then you end up with a re-usable bundle

If you share the specific behaviors your looking it would help. I wont 
commit to writing it but I would be happy to work through the process 
with you.
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to