mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-25 21:16:17 +00:00
32 lines
717 B
JavaScript
32 lines
717 B
JavaScript
'use strict';
|
|
|
|
var Steppy = require('twostep').Steppy,
|
|
inherits = require('util').inherits,
|
|
ParentExecutor = require('./base').Executor,
|
|
createScm = require('../scm').createScm,
|
|
createCommand = require('../command').createCommand,
|
|
fs = require('fs'),
|
|
_ = require('underscore');
|
|
|
|
function Executor(params) {
|
|
ParentExecutor.call(this, params);
|
|
}
|
|
|
|
inherits(Executor, ParentExecutor);
|
|
|
|
exports.Executor = Executor;
|
|
|
|
Executor.prototype._createScm = function(params) {
|
|
return createScm(params);
|
|
};
|
|
|
|
Executor.prototype._createCommand = function(params) {
|
|
return createCommand(params);
|
|
};
|
|
|
|
Executor.prototype._isCloned = function(callback) {
|
|
fs.exists(this.cwd, function(exists) {
|
|
callback(null, exists);
|
|
});
|
|
};
|