Get rid of gitCli in favor of gitwrap

This commit is contained in:
Juan Cruz Viotti 2015-03-11 09:03:13 -04:00
parent 4bfe52d73b
commit cb5bb69b47
3 changed files with 15 additions and 9 deletions

View File

@ -1,5 +1,5 @@
(function() {
var _, async, examplesData, fs, gitCli, path, resin, visuals;
var _, async, examplesData, fs, gitwrap, path, resin, visuals;
async = require('async');
@ -9,12 +9,12 @@
_ = require('lodash');
gitCli = require('git-cli');
resin = require('resin-sdk');
visuals = require('resin-cli-visuals');
gitwrap = require('gitwrap');
examplesData = require('../data/examples.json');
exports.list = {
@ -82,8 +82,11 @@
return callback(error);
});
}, function(callback) {
console.info("Cloning " + example.display_name + " to " + example.name);
return gitCli.Repository.clone(example.repository, example.name, callback);
var currentDirectory, git;
currentDirectory = process.cwd();
console.info("Cloning " + example.display_name + " to " + currentDirectory);
git = gitwrap.create(currentDirectory);
return git.execute("clone " + example.repository, callback);
}
], done);
}

View File

@ -2,9 +2,9 @@ async = require('async')
fs = require('fs')
path = require('path')
_ = require('lodash')
gitCli = require('git-cli')
resin = require('resin-sdk')
visuals = require('resin-cli-visuals')
gitwrap = require('gitwrap')
examplesData = require('../data/examples.json')
exports.list =
@ -96,7 +96,11 @@ exports.clone =
return callback(error)
(callback) ->
console.info("Cloning #{example.display_name} to #{example.name}")
gitCli.Repository.clone(example.repository, example.name, callback)
currentDirectory = process.cwd()
console.info("Cloning #{example.display_name} to #{currentDirectory}")
git = gitwrap.create(currentDirectory)
git.execute("clone #{example.repository}", callback)
], done

View File

@ -53,7 +53,6 @@
"conf.js": "^0.1.1",
"diskio": "^1.0.0",
"drivelist": "^1.2.1",
"git-cli": "~0.8.2",
"gitwrap": "^1.1.0",
"lodash": "~2.4.1",
"lodash-contrib": "~241.4.14",