multi-cloner
v0.2.2
Published
A module that clones multiple git repositories in a specific destination
Downloads
3
Readme
Multi Cloner
A utility that clones multiple git repositories.
Status
<tbody>
<tr>
<td><a href="https://travis-ci.org/fmatar/multi-cloner"><img src="https://travis-ci.org/fmatar/multi-cloner.svg?branch=master" /></a></td>
<td><a href="https://david-dm.org/fmatar/multi-cloner"><img src="https://david-dm.org/fmatar/multi-cloner.svg" /></a></td>
<td><a href="https://coveralls.io/github/fmatar/multi-cloner"><img src="https://coveralls.io/repos/fmatar/multi-cloner/badge.svg?branch=master" /></a></td>
</tr>
</tbody>
Usage
'use strict';
const MultiCloner = require('multi-cloner');
let config = {
destination: '/tmp/tools', //path where all the repositories will be cloned
repositories: [ //individual repositories to clone
'https://github.com/fmatar/cassandra-installer.git',
'https://github.com/fmatar/cloner.git'
]
};
const cloner = new MultiCloner(config);
/* Install the repositories specified in the configuration in the specified destination */
cloner.install((err, data) => {
console.log(err, data);
});
/* Cleanup */
cloner.uninstall();
This module might not work on Windows since NodeGit is not guaranteed to work on Windows.