mecano
Version:
Common functions for system deployment.
22 lines (21 loc) • 523 B
JavaScript
// Generated by CoffeeScript 1.11.1
module.exports = {
handler: function(options, callback) {
options.log({
message: "Entering ssh.close",
level: 'DEBUG',
module: 'mecano/lib/ssh/close'
});
if (!this.options.ssh) {
return callback();
}
this.options.ssh.end();
this.options.ssh.on('error', function(err) {
return callback(err);
});
this.options.ssh.on('end', function() {
return callback(null, true);
});
return this.options.ssh = void 0;
}
};