Skip to content

Instantly share code, notes, and snippets.

@dwi2
Created March 12, 2015 08:16
Show Gist options
  • Save dwi2/a71a32c366ba55ced04f to your computer and use it in GitHub Desktop.
Save dwi2/a71a32c366ba55ced04f to your computer and use it in GitHub Desktop.
CallScreen build script for debuguy
'use strict';
/* global require, exports */
var utils = require('utils');
var CallScreenAppBuilder = function() {
};
CallScreenAppBuilder.prototype.execute = function(options) {
utils.copyToStage(options);
var stageDir = options.STAGE_APP_DIR + '/js'
var debuguy = new utils.Commander('debuguy');
var args = [
'autolog',
stageDir
];
debuguy.initPath(utils.getEnvPath());
debuguy.run(args, function(exitValue) {
if (exitValue !== 0) {
throw new Error();
}
});
};
exports.execute = function(options) {
(new CallScreenAppBuilder()).execute(options);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment