@amazeeio/amazeeio-tasks
Advanced tools
Comparing version 1.0.3-dev.6 to 1.0.3-dev.7
@@ -109,4 +109,7 @@ 'use strict'; | ||
console.log(activeSystems); | ||
if (!(typeof activeSystems.deploy === 'undefined')) { | ||
_context2.next = 6; | ||
_context2.next = 7; | ||
break; | ||
@@ -117,3 +120,3 @@ } | ||
case 6: | ||
case 7: | ||
@@ -127,10 +130,10 @@ // BC: the given active Systems were just a string in the past, now they are an object with the active system as a key | ||
_context2.t0 = Object.keys(activeSystems.deploy)[0]; | ||
_context2.next = _context2.t0 === 'lagoon_openshift' ? 10 : 31; | ||
_context2.next = _context2.t0 === 'lagoon_openshift' ? 11 : 32; | ||
break; | ||
case 10: | ||
case 11: | ||
deploySystem = activeSystems.deploy['lagoon_openshift']; | ||
if (!(type === 'branch')) { | ||
_context2.next = 31; | ||
_context2.next = 32; | ||
break; | ||
@@ -141,18 +144,18 @@ } | ||
_context2.t1 = deploySystem.branches; | ||
_context2.next = _context2.t1 === undefined ? 16 : _context2.t1 === true ? 18 : _context2.t1 === false ? 20 : 22; | ||
_context2.next = _context2.t1 === undefined ? 17 : _context2.t1 === true ? 19 : _context2.t1 === false ? 21 : 23; | ||
break; | ||
case 16: | ||
case 17: | ||
_amazeeioLocalLogging.logger.verbose('siteGroupName: ' + siteGroupName + ', branchName: ' + branchName + ', no branches defined in active system, assuming we want all of them'); | ||
return _context2.abrupt('return', sendToAmazeeioTasks('deploy-openshift', deployData)); | ||
case 18: | ||
case 19: | ||
_amazeeioLocalLogging.logger.verbose('siteGroupName: ' + siteGroupName + ', branchName: ' + branchName + ', all branches active, therefore deploying'); | ||
return _context2.abrupt('return', sendToAmazeeioTasks('deploy-openshift', deployData)); | ||
case 20: | ||
case 21: | ||
_amazeeioLocalLogging.logger.verbose('siteGroupName: ' + siteGroupName + ', branchName: ' + branchName + ', branch deployments disabled'); | ||
return _context2.abrupt('return', 'siteGroupName: ' + siteGroupName + ', branchName: ' + branchName + ', branch deployments disabled'); | ||
case 22: | ||
case 23: | ||
_amazeeioLocalLogging.logger.verbose('siteGroupName: ' + siteGroupName + ', branchName: ' + branchName + ', regex ' + deploySystem.branches + ', testing if it matches'); | ||
@@ -162,3 +165,3 @@ branchRegex = new RegExp(deploySystem.branches); | ||
if (!branchRegex.test(branchName)) { | ||
_context2.next = 29; | ||
_context2.next = 30; | ||
break; | ||
@@ -170,10 +173,10 @@ } | ||
case 29: | ||
case 30: | ||
_amazeeioLocalLogging.logger.verbose('siteGroupName: ' + siteGroupName + ', branchName: ' + branchName + ', regex ' + deploySystem.branches + ' did not match branchname, not deploying'); | ||
return _context2.abrupt('return', 'siteGroupName: ' + siteGroupName + ', branchName: ' + branchName + ', defined regex ' + deploySystem.branches + ' did not match branchname, not deploying'); | ||
case 31: | ||
case 32: | ||
throw new UnknownActiveSystem('Unknown active system \'' + deploySystem.system + '\' for task \'deploy\' in for sitegroup ' + siteGroupName); | ||
case 32: | ||
case 33: | ||
case 'end': | ||
@@ -180,0 +183,0 @@ return _context2.stop(); |
{ | ||
"name": "@amazeeio/amazeeio-tasks", | ||
"version": "1.0.3-dev.6", | ||
"version": "1.0.3-dev.7", | ||
"description": "amazeeio task sdk", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
120917
161