mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-11 08:35:07 +00:00
34 lines
781 B
JavaScript
34 lines
781 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'),
|
|
SpawnCommand = require('../command/spawn').Command;
|
|
|
|
function Executor(params) {
|
|
ParentExecutor.call(this, params);
|
|
}
|
|
|
|
inherits(Executor, ParentExecutor);
|
|
|
|
exports.Executor = Executor;
|
|
|
|
Executor.prototype._createScm = function(params) {
|
|
params.command = new SpawnCommand();
|
|
|
|
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);
|
|
});
|
|
};
|