UNPKG

mecano

Version:

Common functions for system deployment.

35 lines (31 loc) 800 B
// Generated by CoffeeScript 1.11.1 var docker, util, slice = [].slice; module.exports = function(options, callback) { var k, ref, v; options.log({ message: "Entering Docker unpause", level: 'DEBUG', module: 'mecano/lib/docker/unpause' }); if (options.docker == null) { options.docker = {}; } ref = options.docker; for (k in ref) { v = ref[k]; if (options[k] == null) { options[k] = v; } } if (options.container == null) { return callback(Error('Missing container parameter')); } return this.execute({ cmd: docker.wrap(options, "unpause " + options.container) }, function() { return docker.callback.apply(docker, [callback].concat(slice.call(arguments))); }); }; docker = require('../misc/docker'); util = require('util');