Victor Piousbox Victor Piousbox - 2 months ago 7x
Git Question

Check out a Git repository with chef?

I have a Git repository I would like to check out onto a server. Is there a Chef recipe that does that?


The git SCM resource is probably what you're looking for. Simple resource usage example:

git "/path/to/check/out/to" do
  repository "git://"
  reference "master"
  action :sync

Also see "revision" attribute if you want to grab a specific branch.