Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 19th, 2012  |  syntax: JavaScript  |  size: 0.51 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.   grunt.registerTask('docker', 'Generate documentation', function() {
  2.     var done = this.async();
  3.     this.requiresConfig('docker.files');
  4.  
  5.     function done(file) {
  6.       console.log(file);
  7.       return function(err, result, code) {
  8.  
  9.       };
  10.     }
  11.  
  12.     var files = grunt.file.expand(grunt.config('docker.files'));
  13.     var cmd = './node_modules/docker/docker ' + files.join(' ');
  14.     console.log('This is the command we\'ll run');
  15.     console.log(cmd);
  16.  
  17.     grunt.utils.spawn({ cmd : cmd }, done);
  18.   });