This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const chalk = require('chalk'); | |
const cli = require('ember-cli'); | |
const fs = require('fs'); | |
let enableLog = false; | |
let failures = 0; | |
function wrapStream(stream) { | |
const _write = stream.write.bind(stream); | |
const _print = (txt) => _write(txt + "\n"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function promisify(func, scope) { | |
return function () { | |
var args = [].slice.call(arguments); | |
var deferred = Promise.defer(); | |
args.push(function () { | |
if (arguments[0]) { | |
// There was an error | |
deferred.reject(arguments[0]); |
NewerOlder