Skip to content

Instantly share code, notes, and snippets.

@johnfitzpatrick
Created May 27, 2015 14:55
Show Gist options
  • Save johnfitzpatrick/1ce0fb84d12cad7308da to your computer and use it in GitHub Desktop.
Save johnfitzpatrick/1ce0fb84d12cad7308da to your computer and use it in GitHub Desktop.
mydirectory = "/Users/YOU/training/chef-repo"
git "previous-repo" do
destination "#{mydirectory}"
repository "git://github.com/johnfitzpatrick/cheffundamentals3.git"
reference "v1"
action :export
end
execute "chown -R YOU #{mydirectory}" do
only_if File.exist?("#{mydirectory}/README.md")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment