set cwd at local executor instead of base

This commit is contained in:
oleg 2016-03-01 23:59:23 +03:00
parent 1bf07741ab
commit e52f03711b
2 changed files with 2 additions and 2 deletions

View File

@ -1,14 +1,12 @@
'use strict';
var Steppy = require('twostep').Steppy,
path = require('path'),
_ = require('underscore'),
EventEmitter = require('events').EventEmitter,
inherits = require('util').inherits;
function Executor(params) {
this.project = params.project;
this.cwd = path.join(this.project.dir, 'workspace');
}
exports.Executor = Executor;

View File

@ -6,10 +6,12 @@ var Steppy = require('twostep').Steppy,
createScm = require('../scm').createScm,
createCommand = require('../command').createCommand,
fs = require('fs'),
path = require('path'),
SpawnCommand = require('../command/spawn').Command;
function Executor(params) {
ParentExecutor.call(this, params);
this.cwd = path.join(this.project.dir, 'workspace');
}
inherits(Executor, ParentExecutor);