Example #1
0
        dns.lookup(hosts[1], function onLookup(e, ip2, family) {
            if (e) throw e;
            console.log(c.green.bgBlack('looking up', host, c.red.bgBlack(ip)));
            if (ip.split('.').length != 4) throw "ip=" + ip;
//            ips.push(ip);
            var Host = new vz.Host(ip, []);
//            var Host1 = new vz.Host(ip2, []);
            var Cluster = new vz.Cluster(Host);
//            Cluster.register(Host1);
    console.log(c.green.bgBlack('Cluster Init', ip));
var fC = function() {
    var countSou1p = new vz.supervisors.Count(Cluster, vz.containers[program.template], program.count, false);
};
setTimeout(fC, 3000);
        });
const log = (pass, msg) => {
  const prefix = pass ? chalk.green.bgBlack('PASS') : chalk.red.bgBlack('FAIL');
  const color = pass ? chalk.blue : chalk.red;
  console.log(prefix, color(msg));
};
Example #3
0
 mbufferSend.stderr.on('data', function(data) {
     console.log(c.red.bgBlack(data.toString("utf8")));
 });
Example #4
0
 stream.on('data', function(data) {
     data = data.toString('utf8');
     console.log(c.red.bgBlack(data));
 });