Run grunt install inside service directory

This commit is contained in:
James Allen 2014-08-19 15:10:50 +01:00
parent 75f45401c1
commit 01ca16fd59

View file

@ -241,7 +241,8 @@ module.exports = (grunt) ->
grunt.log.writeln "Config file already exists. Skipping."
callback()
runGruntInstall: (dir, callback = (error) ->) ->
runGruntInstall: (service, callback = (error) ->) ->
dir = service.name
proc = spawn "grunt", ["install"], stdio: "inherit", cwd: dir
proc.on "close", () ->
callback()