lib/localExecutor.js
function(mode, targetHost, system, containerDef, container, out, newConfig, cb) {

    if (container.specific && container.specific.dockerContainerId && container.specific.configPath && container.specific.hup) {
      tmp.file(function(err, path) {
        if (err) { return cb(err); }

        fs.writeFile(path, newConfig, 'utf8', function(err) {
          if (err) { return cb(err); }

          var copyCmd = commands.generateCopyCommand(container.specific.dockerContainerId, container.specific.configPath, path);
          var hupCmd = commands.generateHupCommand(container);

          executor.exec(mode, copyCmd, config.imageCachePath, out, function(err) {
            if (err) { return cb(err); }
            executor.exec(mode, hupCmd, config.imageCachePath, out, function(err) {
              cb(err);
            });
          });
        });
      });
    }
    else { 
      cb();
    }
  }
function(mode, targetHost, system, containerDef, container, out, newConfig, cb) {

    if (container.specific && container.specific.dockerContainerId && container.specific.configPath && container.specific.hup) {
      tmp.file(function(err, path) {
        if (err) { return cb(err); }

        fs.writeFile(path, newConfig, 'utf8', function(err) {
          if (err) { return cb(err); }

          var copyCmd = commands.generateCopyCommand(container.specific.dockerContainerId, container.specific.configPath, path);
          var hupCmd = commands.generateHupCommand(container);

          executor.exec(mode, copyCmd, config.imageCachePath, out, function(err) {
            if (err) { return cb(err); }
            executor.exec(mode, hupCmd, config.imageCachePath, out, function(err) {
              cb(err);
            });
          });
        });
      });
    }
    else { 
      cb();
    }
  }
function ( mode , targetHost , system , containerDef , container , out , newConfig , cb ) { if ( container . specific && container . specific . dockerContainerId && container . specific . configPath && container . specific . hup ) { tmp . file ( function ( err , path ) { if ( err ) { return cb ( err ) ; } fs . writeFile ( path , newConfig , 'utf8' , function ( err ) { if ( err ) { return cb ( err ) ; } var copyCmd = commands . generateCopyCommand ( container . specific . dockerContainerId , container . specific . configPath , path ) ; var hupCmd = commands . generateHupCommand ( container ) ; executor . exec ( mode , copyCmd , config . imageCachePath , out , function ( err ) { if ( err ) { return cb ( err ) ; } executor . exec ( mode , hupCmd , config . imageCachePath , out , function ( err ) { cb ( err ) ; } ) ; } ) ; } ) ; } ) ; } else { cb ( ) ; } }
provide a new config and hup the container internal daemon
provide a new config and hup the container internal daemon