const download = require('download-git-repo')

module.exports.clone = function (repo, dest) {
    return new Promise((resolve, reject) => {
        download(repo, dest, { clone: true }, function (error) {
            if (error) {
                reject(error)
            } else {
                resolve()
            }
        })
    })
}