npm.io
0.2.2 • Published 10 years ago

multi-cloner

Licence
MIT
Version
0.2.2
Deps
3
Vulns
0
Weekly
0

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>
Build Status Dependencies Coverage

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.