(repo_path, command_list, cb)
| 272 | * @return |
| 273 | */ |
| 274 | var execCommands = function(repo_path, command_list, cb) { |
| 275 | var stdout = ''; |
| 276 | |
| 277 | eachSeries(command_list, function(command, callback) { |
| 278 | stdout += '\n' + command; |
| 279 | exec('cd '+repo_path+';'+command, |
| 280 | function(code, output) { |
| 281 | stdout += '\n' + output; |
| 282 | if (code === 0) |
| 283 | callback(); |
| 284 | else |
| 285 | callback('`'+command+'` failed'); |
| 286 | }); |
| 287 | }, function(err) { |
| 288 | if (err) |
| 289 | return cb(stdout + '\n' + err); |
| 290 | return cb(null, stdout); |
| 291 | }); |
| 292 | } |
| 293 | |
| 294 | /** |
| 295 | * Description Search process.json for post-update commands |
no test coverage detected
searching dependent graphs…