On Thu, 17 May 2012 20:27:03 -0500 Nick Anderson <n...@cmdln.org> wrote:
NA> Hey Analogue, I submitted a pull request to the design-center earlier NA> today with a sketch that I think does what you were looking for. NA> https://github.com/cfengine/design-center/pull/49 NA> https://github.com/nickanderson/design-center/tree/feature_git_freshclone/utilities/git_freshclone NA> Check it out see if it does what you want. Hi Nick, I am working on that sketch to make it compatible with cfsketch. I renamed it to vcs_freshclone and am working on the interface. Here's what the interface looks like now: #+begin_src cfengine bundle agent meta_vcs_freshclone { vars: # acceptable values: "/usr/bin/git" for example "optional_argument[vcs]" string => "string"; "argument[path]" string => "string"; "argument[origin]" string => "string"; "argument[branch]" string => "string"; "default[vcs]" string => "/usr/bin/git"; } #+end_src cfsketch itself will make it possible to activate this multiple times, so you don't have to deal with passing a 2-level array to describe multiple repositories. Although it will only support Git for now, I'm leaving the door open to support other VCSs, including Subversion and even CVS. They are still out there :) There's a bit more to do; I will follow up here when I push the results to my DC clone at https://github.com/tzz/design-center.git and you can review it. I hope you'll like my changes. Ted _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine