UNPKG

mecano

Version:

Common functions for system deployment.

19 lines (18 loc) 500 B
// Generated by CoffeeScript 1.11.1 module.exports = { shy: true, handler: function(options) { options.log({ message: "Entering connection.assert", level: 'DEBUG', module: 'mecano/lib/connection/assert' }); return this.execute({ cmd: "bash -c 'echo > /dev/tcp/" + options.host + "/" + options.port + "'" }, function(err) { if (err) { throw Error("Address not listening: \"" + options.host + ":" + options.port + "\""); } }); } };