Victor Piousbox Victor Piousbox - 1 year ago 120
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?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download