Reputation: 13
is it possible that in my ruby on rails project I can implement a function that automatically clones a project from a repository in a specific folder ?, would there be a way to do it ?, is it possible?
I would like to know if ruby on rails has any way of doing it or if there is a gem
Upvotes: 1
Views: 116
Reputation: 1893
here is the official git gem https://github.com/ruby-git/ruby-git
Git.clone(URI, NAME, :path => '/tmp/checkout')
Upvotes: 1