Alejandro Cortés
Alejandro Cortés

Reputation: 13

Clone a project to a specific folder

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

Answers (1)

Diego Velez
Diego Velez

Reputation: 1893

here is the official git gem https://github.com/ruby-git/ruby-git

Git.clone(URI, NAME, :path => '/tmp/checkout')

Upvotes: 1

Related Questions