On 05/16/2012 01:50 PM, [email protected] 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 => "[email protected]: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 => "[email protected]: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
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine