From 01a03ec4d7912fad9f433dfd9cbb148da5adefd3 Mon Sep 17 00:00:00 2001 From: oleg Date: Mon, 23 Mar 2015 00:50:45 +0300 Subject: [PATCH] remove unused build module --- lib/build.js | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 lib/build.js diff --git a/lib/build.js b/lib/build.js deleted file mode 100644 index 78206cb..0000000 --- a/lib/build.js +++ /dev/null @@ -1,43 +0,0 @@ -'use strict'; - -var createScm = require('../lib/scm').createScm, - createCommnd = require('../lib/command').createCommnd; - -function Build(params) { - this.config = params.config; - this.cwd = params.cwd; -} - -exports.Build = Build; - -Build.prototype.run = function(state, callback) { - var self = this; - state.step = state.step || 'getSources'; - this[state.step](state, function(err) { - if (err) { - state.err = err; - self.onFailure(state, callback); - return; - } - if (state.step === 'getSources') { - state.step = 'steps'; - state.stepIndex = 0; - } else if (state.step === 'steps') { - if (state.stepIndex + 1 < self.config.steps.length) { - state.stepIndex++; - } else { - delete state.stepIndex; - } - } - }); -}; - -Build.prototype.getSources = function(state, callback) { - -}; - -Build.prototype.steps = function(state, callback) { - var cmdParams = this.config.steps[state.stepIndex]; - var cmd = createCommand({type: cmdParams.type}); - cmd.run(cmdParams, callback); -};