nscale-util
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -124,8 +124,19 @@ /* | ||
if (preCheck()) { | ||
out.stdout('running build script: sh ./' + containerDef.specific.buildScript); | ||
logger.info('running build script: sh ./' + containerDef.specific.buildScript); | ||
out.progress('running build script: ' + containerDef.specific.buildScript); | ||
executor.exec(mode, 'sh ./' + containerDef.specific.buildScript, path, out, function(err, targetPath) { | ||
if (containerDef.specific.buildScript) { | ||
out.stdout('running build script: sh ./' + containerDef.specific.buildScript); | ||
logger.info('running build script: sh ./' + containerDef.specific.buildScript); | ||
out.progress('running build script: ' + containerDef.specific.buildScript); | ||
executor.exec(mode, 'sh ./' + containerDef.specific.buildScript, path, out, function(err, targetPath) { | ||
out.progress('creating image'); | ||
createImage(mode, system, containerDef, targetPath, out, function(err, specific) { | ||
specific.version = version; | ||
containerDef.version = version; | ||
cb(err, specific); | ||
}); | ||
}); | ||
} | ||
else { | ||
out.progress('no build script present, skipping'); | ||
out.progress('creating image'); | ||
createImage(mode, system, containerDef, targetPath, out, function(err, specific) { | ||
createImage(mode, system, containerDef, '.', out, function(err, specific) { | ||
specific.version = version; | ||
@@ -135,3 +146,3 @@ containerDef.version = version; | ||
}); | ||
}); | ||
} | ||
} | ||
@@ -138,0 +149,0 @@ else { |
@@ -26,3 +26,3 @@ /* | ||
var proc; | ||
var targetPath; | ||
var targetPath = '.'; | ||
var errmsg = ''; | ||
@@ -40,2 +40,5 @@ | ||
} | ||
else { | ||
targetPath = '.'; | ||
} | ||
out.stdout(data); | ||
@@ -42,0 +45,0 @@ }); |
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"license": "Artistic License 2.0", | ||
@@ -13,0 +13,0 @@ "author": "Peter Elger (http://nearform.com/)", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47334
919