Skip to content

Commit

Permalink
Introduce rootExecuter class
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomohito Nakayama committed Mar 18, 2016
1 parent 9c5da71 commit c42e7b9
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,13 @@ function notexecPlan() {
);
}

function rootExecuter(){
executer.call( this, null);
}

function filedExecuter( file ){

executer.call( this, null );
rootExecuter.call( this, null );

let thisExecuter = this;

Expand All @@ -262,7 +266,7 @@ function newFileExecuter( file ){

function downloadExecuter( url, file ){

executer.call( this, null );
rootExecuter.call( this, null );
let thisExecuter = this;

this.rootExec =
Expand All @@ -278,7 +282,7 @@ function downloadExecuter( url, file ){

function rootsExecuter( executers ){

executer.call( this, null );
rootExecuter.call( this, null );

let thisExecuter = this;

Expand Down Expand Up @@ -622,11 +626,11 @@ function collectExecuter( userProcess, parent, filePath) {


util.inherits( executer, EventEmitter);

util.inherits( filedExecuter, executer);
util.inherits( rootExecuter, executer);
util.inherits( filedExecuter, rootExecuter);
util.inherits( newFileExecuter, filedExecuter);
util.inherits( downloadExecuter, executer);
util.inherits( rootsExecuter, executer);
util.inherits( downloadExecuter, rootExecuter);
util.inherits( rootsExecuter, rootExecuter);

util.inherits( childExecuter, executer);

Expand Down

0 comments on commit c42e7b9

Please sign in to comment.