prima-twig 0.53.37 → 0.53.38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/twig-feature +65 -72
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8d11816da5a40cc75fc9e68a604877d86049208d575fcb33ad8ae22c7e03c5e0
4
- data.tar.gz: 44ef1b460c4861ba6eb91b669f200e608fb0430e0bda0fcb1ec2259be4740d43
3
+ metadata.gz: 4455cf2b3a74c53568983afdab63cc07fc8849826b55fe6b2b839d70f9576f14
4
+ data.tar.gz: d5a37af8ecc8c66f5e3d5db5a1633f173b4d3b6419addadfe26abddf4426f905
5
5
  SHA512:
6
- metadata.gz: 209433fcace0abd9dd12f939c024c51711d9b09d6cd98e1ab0164b43eb834e5fc33141943d3662ca1d8d5453aa1a35e7290f579761684016e5493401f77c6fef
7
- data.tar.gz: 2c8830003f7ba7569420c9e372be8e7015f4fe594ecb660a28fd26e5f58e48fabda5db9f97612c843d923b642a1c6c3bcb345a996b478a9d6abd04c5267238f3
6
+ metadata.gz: 6addbc3c991cc8af04ae13f948f83e6af3acd8f6ef67ce55f2c8e32822b81f0001824ddd9b67236fc419b49e59b771acfcd9c8adcb5d58c40e31ba9a00cb99c7
7
+ data.tar.gz: fd610b15c4108080e46b246b5511354008662c428e0a344e7af356ca943eaa665beb440c75bcd9acf72263009566e5f25627e044a8ba8400cd2ba7bba619fd75
@@ -488,15 +488,8 @@ class Release
488
488
  `git checkout -b #{branch_name}`
489
489
  end
490
490
 
491
- branches = ''
492
491
  @git_branch = branch_name
493
492
 
494
- @projects.each_key do |project_key|
495
- if @projects[project_key][:revision]
496
- branches += "#{project_key}:#{@projects[project_key][:name]}:#{@projects[project_key][:revision]}:#{@projects[project_key][:default_branch]}\n"
497
- end
498
- end
499
-
500
493
  File.open('branch_names', 'w') { |file| file.write(JSON.generate(@projects)) }
501
494
 
502
495
  `git add projects && \
@@ -568,7 +561,7 @@ class Release
568
561
 
569
562
  projects.each do |key, project|
570
563
  @projects[key] = select_branch_to_deploy(key, project['name'])
571
- @projects[key][:default_branch] = project['default_branch']
564
+ @projects[key]['default_branch'] = project['default_branch']
572
565
  end
573
566
 
574
567
  File.open('branch_names', 'w') { |file| file.write(JSON.generate(@projects)) }
@@ -719,9 +712,9 @@ class Release
719
712
  @ami_id = get_ami_id("ecs-fleet-allinone-staging")
720
713
  project = ''
721
714
  @projects.each_key do |project_key|
722
- if @projects[project_key][:revision]
715
+ if @projects[project_key]['revision']
723
716
  project = project_key
724
- git_checkout_version(project_key, @projects[project_key][:revision])
717
+ git_checkout_version(project_key, @projects[project_key]['revision'])
725
718
  end
726
719
  end
727
720
  deploy_id = get_deploy_id
@@ -736,7 +729,7 @@ class Release
736
729
  },
737
730
  {
738
731
  key: project,
739
- value: @projects[project][:name]
732
+ value: @projects[project]['name']
740
733
  },
741
734
  {
742
735
  key: "hostname_pattern_priority",
@@ -769,8 +762,8 @@ class Release
769
762
  create_asg_stack(asg_stack_name, tags) unless stack_exists?(asg_stack_name)
770
763
 
771
764
  deploy_id = get_deploy_id
772
- create_pyxis_artifact(@projects["pyxis-npm"][:revision], deploy_id)
773
- create_prima_artifact(@projects["prima"][:revision], @projects["prima"][:name], deploy_id, true) unless artifact_exists?('prima-artifacts-encrypted', "prima/#{@projects["prima"][:revision]}.tar.gz")
765
+ create_pyxis_artifact(@projects["pyxis-npm"]['revision'], deploy_id)
766
+ create_prima_artifact(@projects["prima"]['revision'], @projects["prima"]['name'], deploy_id, true) unless artifact_exists?('prima-artifacts-encrypted', "prima/#{@projects["prima"]['revision']}.tar.gz")
774
767
 
775
768
  wait_for_stack_ready(stack_name_alb) unless stack_ready?(stack_name_alb)
776
769
  wait_for_stack_ready(stack_name_alb_ws) unless stack_ready?(stack_name_alb_ws)
@@ -796,7 +789,7 @@ class Release
796
789
  wait_for_stack_ready(stack_name_route53) unless stack_ready?(stack_name_route53)
797
790
 
798
791
  stack_name_web = "ecs-task-web-qa-#{deploy_id}"
799
- git_checkout_version('prima', @projects["prima"][:revision])
792
+ git_checkout_version('prima', @projects["prima"]['revision'])
800
793
  stack_body = IO.read('projects/prima/app/cloudformation/tasks/web.yml')
801
794
  parameters = [
802
795
  {
@@ -805,7 +798,7 @@ class Release
805
798
  },
806
799
  {
807
800
  parameter_key: "ReleaseVersion",
808
- parameter_value: "#{@projects["prima"][:revision]}"
801
+ parameter_value: "#{@projects["prima"]['revision']}"
809
802
  },
810
803
  {
811
804
  parameter_key: "TaskDesiredCount",
@@ -858,7 +851,7 @@ class Release
858
851
  ]
859
852
  if stack_exists?(stack_name_web)
860
853
  cur_version = get_currently_deployed_version(stack_name_web)
861
- update_stack(stack_name_web, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["prima"][:revision])
854
+ update_stack(stack_name_web, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["prima"]['revision'])
862
855
  else
863
856
  create_stack(stack_name_web, stack_body, parameters, tags, @cf_role)
864
857
  end
@@ -1077,7 +1070,7 @@ class Release
1077
1070
  },
1078
1071
  {
1079
1072
  parameter_key: "ReleaseVersion",
1080
- parameter_value: @projects["skynet"][:revision]
1073
+ parameter_value: @projects["skynet"]['revision']
1081
1074
  },
1082
1075
  {
1083
1076
  parameter_key: "TaskDesiredCount",
@@ -1098,13 +1091,13 @@ class Release
1098
1091
  ]
1099
1092
  if stack_exists?(stack_name_skynet)
1100
1093
  cur_version = get_currently_deployed_version(stack_name_skynet)
1101
- update_stack(stack_name_skynet, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["skynet"][:revision])
1094
+ update_stack(stack_name_skynet, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["skynet"]['revision'])
1102
1095
  else
1103
1096
  create_stack(stack_name_skynet, stack_body, parameters, tags, @cf_role)
1104
1097
  end
1105
1098
 
1106
1099
  stack_name_urania = "ecs-task-urania-qa-#{deploy_id}"
1107
- git_checkout_version('urania', @projects["urania"][:revision])
1100
+ git_checkout_version('urania', @projects["urania"]['revision'])
1108
1101
  stack_body = File.read('projects/urania/deploy/task.yml')
1109
1102
  parameters = [
1110
1103
  {
@@ -1113,7 +1106,7 @@ class Release
1113
1106
  },
1114
1107
  {
1115
1108
  parameter_key: "ReleaseVersion",
1116
- parameter_value: @projects["urania"][:revision]
1109
+ parameter_value: @projects["urania"]['revision']
1117
1110
  },
1118
1111
  {
1119
1112
  parameter_key: "TaskDesiredCount",
@@ -1134,13 +1127,13 @@ class Release
1134
1127
  ]
1135
1128
  if stack_exists?(stack_name_urania)
1136
1129
  cur_version = get_currently_deployed_version(stack_name_urania)
1137
- update_stack(stack_name_urania, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["urania"][:revision])
1130
+ update_stack(stack_name_urania, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["urania"]['revision'])
1138
1131
  else
1139
1132
  create_stack(stack_name_urania, stack_body, parameters, tags, @cf_role)
1140
1133
  end
1141
1134
 
1142
1135
  stack_name_ermes = "ecs-task-ermes-qa-#{deploy_id}"
1143
- git_checkout_version('ermes', @projects["ermes"][:revision])
1136
+ git_checkout_version('ermes', @projects["ermes"]['revision'])
1144
1137
  stack_body = File.read('projects/ermes/deploy/task.yml')
1145
1138
  parameters = [
1146
1139
  {
@@ -1149,7 +1142,7 @@ class Release
1149
1142
  },
1150
1143
  {
1151
1144
  parameter_key: "ReleaseVersion",
1152
- parameter_value: "#{@projects['ermes'][:revision]}"
1145
+ parameter_value: "#{@projects['ermes']['revision']}"
1153
1146
  },
1154
1147
  {
1155
1148
  parameter_key: "TaskDesiredCount",
@@ -1178,13 +1171,13 @@ class Release
1178
1171
  ]
1179
1172
  if stack_exists?(stack_name_ermes)
1180
1173
  cur_version = get_currently_deployed_version(stack_name_ermes)
1181
- update_stack(stack_name_ermes, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["ermes"][:revision])
1174
+ update_stack(stack_name_ermes, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["ermes"]['revision'])
1182
1175
  else
1183
1176
  create_stack(stack_name_ermes, stack_body, parameters, tags, @cf_role)
1184
1177
  end
1185
1178
 
1186
1179
  stack_name_bburago = "ecs-task-bburago-qa-#{deploy_id}"
1187
- git_checkout_version('bburago', @projects["bburago"][:revision])
1180
+ git_checkout_version('bburago', @projects["bburago"]['revision'])
1188
1181
  stack_body = File.read('projects/bburago/deploy/task.yml')
1189
1182
  parameters = [
1190
1183
  {
@@ -1193,7 +1186,7 @@ class Release
1193
1186
  },
1194
1187
  {
1195
1188
  parameter_key: "ReleaseVersion",
1196
- parameter_value: @projects["bburago"][:revision]
1189
+ parameter_value: @projects["bburago"]['revision']
1197
1190
  },
1198
1191
  {
1199
1192
  parameter_key: "ECSClusterName",
@@ -1214,13 +1207,13 @@ class Release
1214
1207
  ]
1215
1208
  if stack_exists?(stack_name_bburago)
1216
1209
  cur_version = get_currently_deployed_version(stack_name_bburago)
1217
- update_stack(stack_name_bburago, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["bburago"][:revision])
1210
+ update_stack(stack_name_bburago, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["bburago"]['revision'])
1218
1211
  else
1219
1212
  create_stack(stack_name_bburago, stack_body, parameters, tags, @cf_role)
1220
1213
  end
1221
1214
 
1222
1215
  stack_name_hal9000 = "ecs-task-hal9000-qa-#{deploy_id}"
1223
- git_checkout_version('hal9000', @projects["hal9000"][:revision])
1216
+ git_checkout_version('hal9000', @projects["hal9000"]['revision'])
1224
1217
  stack_body = File.read('projects/hal9000/deploy/task.yml')
1225
1218
  parameters = [
1226
1219
  {
@@ -1229,7 +1222,7 @@ class Release
1229
1222
  },
1230
1223
  {
1231
1224
  parameter_key: "ReleaseVersion",
1232
- parameter_value: @projects["hal9000"][:revision]
1225
+ parameter_value: @projects["hal9000"]['revision']
1233
1226
  },
1234
1227
  {
1235
1228
  parameter_key: "ECSClusterName",
@@ -1250,13 +1243,13 @@ class Release
1250
1243
  ]
1251
1244
  if stack_exists?(stack_name_hal9000)
1252
1245
  cur_version = get_currently_deployed_version(stack_name_hal9000)
1253
- update_stack(stack_name_hal9000, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["hal9000"][:revision])
1246
+ update_stack(stack_name_hal9000, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["hal9000"]['revision'])
1254
1247
  else
1255
1248
  create_stack(stack_name_hal9000, stack_body, parameters, tags, @cf_role)
1256
1249
  end
1257
1250
 
1258
1251
  stack_name_fidaty = "ecs-task-fidaty-qa-#{deploy_id}"
1259
- git_checkout_version('fidaty', @projects["fidaty"][:revision])
1252
+ git_checkout_version('fidaty', @projects["fidaty"]['revision'])
1260
1253
  stack_body = File.read('projects/fidaty/deploy/task.yml')
1261
1254
  parameters = [
1262
1255
  {
@@ -1265,7 +1258,7 @@ class Release
1265
1258
  },
1266
1259
  {
1267
1260
  parameter_key: "ReleaseVersion",
1268
- parameter_value: "#{@projects["fidaty"][:revision]}"
1261
+ parameter_value: "#{@projects["fidaty"]['revision']}"
1269
1262
  },
1270
1263
  {
1271
1264
  parameter_key: "ECSClusterName",
@@ -1290,13 +1283,13 @@ class Release
1290
1283
  ]
1291
1284
  if stack_exists?(stack_name_fidaty)
1292
1285
  cur_version = get_currently_deployed_version(stack_name_fidaty)
1293
- update_stack(stack_name_fidaty, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["fidaty"][:revision])
1286
+ update_stack(stack_name_fidaty, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["fidaty"]['revision'])
1294
1287
  else
1295
1288
  create_stack(stack_name_fidaty, stack_body, parameters, tags, @cf_role)
1296
1289
  end
1297
1290
 
1298
1291
  stack_name_peano = "ecs-task-peano-qa-#{deploy_id}"
1299
- git_checkout_version('peano', @projects["peano"][:revision])
1292
+ git_checkout_version('peano', @projects["peano"]['revision'])
1300
1293
  stack_body = File.read('projects/peano/deploy/task.yml')
1301
1294
  parameters = [
1302
1295
  {
@@ -1305,7 +1298,7 @@ class Release
1305
1298
  },
1306
1299
  {
1307
1300
  parameter_key: "ReleaseVersion",
1308
- parameter_value: "#{@projects['peano'][:revision]}"
1301
+ parameter_value: "#{@projects['peano']['revision']}"
1309
1302
  },
1310
1303
  {
1311
1304
  parameter_key: "ECSClusterName",
@@ -1334,13 +1327,13 @@ class Release
1334
1327
  ]
1335
1328
  if stack_exists?(stack_name_peano)
1336
1329
  cur_version = get_currently_deployed_version(stack_name_peano)
1337
- update_stack(stack_name_peano, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["peano"][:revision])
1330
+ update_stack(stack_name_peano, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["peano"]['revision'])
1338
1331
  else
1339
1332
  create_stack(stack_name_peano, stack_body, parameters, tags, @cf_role)
1340
1333
  end
1341
1334
 
1342
1335
  stack_name_rogoreport = "ecs-task-rogoreport-qa-#{deploy_id}"
1343
- git_checkout_version('rogoreport', @projects["rogoreport"][:revision])
1336
+ git_checkout_version('rogoreport', @projects["rogoreport"]['revision'])
1344
1337
  stack_body = IO.read('projects/rogoreport/deploy/task.yml')
1345
1338
  parameters = [
1346
1339
  {
@@ -1349,7 +1342,7 @@ class Release
1349
1342
  },
1350
1343
  {
1351
1344
  parameter_key: "ReleaseVersion",
1352
- parameter_value: "#{@projects["rogoreport"][:revision]}"
1345
+ parameter_value: "#{@projects["rogoreport"]['revision']}"
1353
1346
  },
1354
1347
  {
1355
1348
  parameter_key: "ReleaseName",
@@ -1362,13 +1355,13 @@ class Release
1362
1355
  ]
1363
1356
  if stack_exists?(stack_name_rogoreport)
1364
1357
  cur_version = get_currently_deployed_version(stack_name_rogoreport)
1365
- update_stack(stack_name_rogoreport, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["rogoreport"][:revision])
1358
+ update_stack(stack_name_rogoreport, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["rogoreport"]['revision'])
1366
1359
  else
1367
1360
  create_stack(stack_name_rogoreport, stack_body, parameters, tags, @cf_role)
1368
1361
  end
1369
1362
 
1370
1363
  stack_name_assange = "ecs-task-assange-qa-#{deploy_id}"
1371
- git_checkout_version('assange', @projects["assange"][:revision])
1364
+ git_checkout_version('assange', @projects["assange"]['revision'])
1372
1365
  stack_body = IO.read('projects/assange/deploy/task.yml')
1373
1366
  parameters = [
1374
1367
  {
@@ -1377,7 +1370,7 @@ class Release
1377
1370
  },
1378
1371
  {
1379
1372
  parameter_key: "ReleaseVersion",
1380
- parameter_value: "#{@projects["assange"][:revision]}"
1373
+ parameter_value: "#{@projects["assange"]['revision']}"
1381
1374
  },
1382
1375
  {
1383
1376
  parameter_key: "ECSClusterName",
@@ -1414,13 +1407,13 @@ class Release
1414
1407
  ]
1415
1408
  if stack_exists?(stack_name_assange)
1416
1409
  cur_version = get_currently_deployed_version(stack_name_assange)
1417
- update_stack(stack_name_assange, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["assange"][:revision])
1410
+ update_stack(stack_name_assange, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["assange"]['revision'])
1418
1411
  else
1419
1412
  create_stack(stack_name_assange, stack_body, parameters, tags, @cf_role)
1420
1413
  end
1421
1414
 
1422
1415
  stack_name_leftorium = "ecs-task-leftorium-qa-#{deploy_id}"
1423
- git_checkout_version('leftorium', @projects["leftorium"][:revision])
1416
+ git_checkout_version('leftorium', @projects["leftorium"]['revision'])
1424
1417
  stack_body = File.read('projects/leftorium/deploy/task.yml')
1425
1418
  parameters = [
1426
1419
  {
@@ -1429,7 +1422,7 @@ class Release
1429
1422
  },
1430
1423
  {
1431
1424
  parameter_key: "ReleaseVersion",
1432
- parameter_value: "#{@projects["leftorium"][:revision]}"
1425
+ parameter_value: "#{@projects["leftorium"]['revision']}"
1433
1426
  },
1434
1427
  {
1435
1428
  parameter_key: "ECSClusterName",
@@ -1450,13 +1443,13 @@ class Release
1450
1443
  ]
1451
1444
  if stack_exists?(stack_name_leftorium)
1452
1445
  cur_version = get_currently_deployed_version(stack_name_leftorium)
1453
- update_stack(stack_name_leftorium, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["leftorium"][:revision])
1446
+ update_stack(stack_name_leftorium, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["leftorium"]['revision'])
1454
1447
  else
1455
1448
  create_stack(stack_name_leftorium, stack_body, parameters, tags, @cf_role)
1456
1449
  end
1457
1450
 
1458
1451
  stack_name_rachele = "ecs-task-rachele-qa-#{deploy_id}"
1459
- git_checkout_version('rachele', @projects["rachele"][:revision])
1452
+ git_checkout_version('rachele', @projects["rachele"]['revision'])
1460
1453
  stack_body = File.read('projects/rachele/deploy/task.yml')
1461
1454
  parameters = [
1462
1455
  {
@@ -1465,7 +1458,7 @@ class Release
1465
1458
  },
1466
1459
  {
1467
1460
  parameter_key: "ReleaseVersion",
1468
- parameter_value: "#{@projects["rachele"][:revision]}"
1461
+ parameter_value: "#{@projects["rachele"]['revision']}"
1469
1462
  },
1470
1463
  {
1471
1464
  parameter_key: "ECSClusterName",
@@ -1490,13 +1483,13 @@ class Release
1490
1483
  ]
1491
1484
  if stack_exists?(stack_name_rachele)
1492
1485
  cur_version = get_currently_deployed_version(stack_name_rachele)
1493
- update_stack(stack_name_rachele, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["rachele"][:revision])
1486
+ update_stack(stack_name_rachele, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["rachele"]['revision'])
1494
1487
  else
1495
1488
  create_stack(stack_name_rachele, stack_body, parameters, tags, @cf_role)
1496
1489
  end
1497
1490
 
1498
1491
  stack_name_borat = "ecs-task-borat-qa-#{deploy_id}"
1499
- git_checkout_version('borat', @projects["borat"][:revision])
1492
+ git_checkout_version('borat', @projects["borat"]['revision'])
1500
1493
  stack_body = IO.read('projects/borat/deploy/task.yml')
1501
1494
  parameters = [
1502
1495
  {
@@ -1505,7 +1498,7 @@ class Release
1505
1498
  },
1506
1499
  {
1507
1500
  parameter_key: "ReleaseVersion",
1508
- parameter_value: "#{@projects["borat"][:revision]}"
1501
+ parameter_value: "#{@projects["borat"]['revision']}"
1509
1502
  },
1510
1503
  {
1511
1504
  parameter_key: "ECSClusterName",
@@ -1550,13 +1543,13 @@ class Release
1550
1543
  ]
1551
1544
  if stack_exists?(stack_name_borat)
1552
1545
  cur_version = get_currently_deployed_version(stack_name_borat)
1553
- update_stack(stack_name_borat, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["borat"][:revision])
1546
+ update_stack(stack_name_borat, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["borat"]['revision'])
1554
1547
  else
1555
1548
  create_stack(stack_name_borat, stack_body, parameters, tags, @cf_role)
1556
1549
  end
1557
1550
 
1558
1551
  if deploy_crash?
1559
- git_checkout_version('crash', @projects['crash'][:revision])
1552
+ git_checkout_version('crash', @projects['crash']['revision'])
1560
1553
  stack_name_crash = "ecs-task-crash-qa-#{deploy_id}"
1561
1554
  stack_body = IO.read('projects/crash/deploy/task.yml')
1562
1555
  parameters = [
@@ -1566,7 +1559,7 @@ class Release
1566
1559
  },
1567
1560
  {
1568
1561
  parameter_key: 'ReleaseVersion',
1569
- parameter_value: "#{@projects['crash'][:revision]}"
1562
+ parameter_value: "#{@projects['crash']['revision']}"
1570
1563
  },
1571
1564
  {
1572
1565
  parameter_key: 'TaskDesiredCount',
@@ -1607,7 +1600,7 @@ class Release
1607
1600
  ]
1608
1601
  if stack_exists?(stack_name_crash)
1609
1602
  cur_version = get_currently_deployed_version(stack_name_crash)
1610
- update_stack(stack_name_crash, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["crash"][:revision])
1603
+ update_stack(stack_name_crash, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["crash"]['revision'])
1611
1604
  else
1612
1605
  create_stack(stack_name_crash, stack_body, parameters, tags, @cf_role)
1613
1606
  end
@@ -1615,7 +1608,7 @@ class Release
1615
1608
 
1616
1609
  if deploy_starsky_hutch?
1617
1610
  stack_name_starsky = "ecs-task-starsky-qa-#{deploy_id}"
1618
- git_checkout_version('starsky', @projects["starsky"][:revision])
1611
+ git_checkout_version('starsky', @projects["starsky"]['revision'])
1619
1612
  stack_body = IO.read('projects/starsky/deploy/task.yml')
1620
1613
  parameters = [
1621
1614
  {
@@ -1624,7 +1617,7 @@ class Release
1624
1617
  },
1625
1618
  {
1626
1619
  parameter_key: "ReleaseVersion",
1627
- parameter_value: "#{@projects["starsky"][:revision]}"
1620
+ parameter_value: "#{@projects["starsky"]['revision']}"
1628
1621
  },
1629
1622
  {
1630
1623
  parameter_key: "TaskDesiredCount",
@@ -1653,14 +1646,14 @@ class Release
1653
1646
  ]
1654
1647
  if stack_exists?(stack_name_starsky)
1655
1648
  cur_version = get_currently_deployed_version(stack_name_starsky)
1656
- update_stack(stack_name_starsky, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["starsky"][:revision])
1649
+ update_stack(stack_name_starsky, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["starsky"]['revision'])
1657
1650
  else
1658
1651
  create_stack(stack_name_starsky, stack_body, parameters, tags, @cf_role)
1659
1652
  end
1660
1653
  end
1661
1654
 
1662
1655
  stack_name_activia = "ecs-task-activia-qa-#{deploy_id}"
1663
- git_checkout_version('activia', @projects["activia"][:revision])
1656
+ git_checkout_version('activia', @projects["activia"]['revision'])
1664
1657
  stack_body = File.read('projects/activia/deploy/task.yml')
1665
1658
  parameters = [
1666
1659
  {
@@ -1669,7 +1662,7 @@ class Release
1669
1662
  },
1670
1663
  {
1671
1664
  parameter_key: "ReleaseVersion",
1672
- parameter_value: "#{@projects["activia"][:revision]}"
1665
+ parameter_value: "#{@projects["activia"]['revision']}"
1673
1666
  },
1674
1667
  {
1675
1668
  parameter_key: "ECSClusterName",
@@ -1698,7 +1691,7 @@ class Release
1698
1691
  ]
1699
1692
  if stack_exists?(stack_name_activia)
1700
1693
  cur_version = get_currently_deployed_version(stack_name_activia)
1701
- update_stack(stack_name_activia, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["activia"][:revision])
1694
+ update_stack(stack_name_activia, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["activia"]['revision'])
1702
1695
  else
1703
1696
  create_stack(stack_name_activia, stack_body, parameters, tags, @cf_role)
1704
1697
  end
@@ -1714,7 +1707,7 @@ class Release
1714
1707
  wait_for_stack_ready(stack_name_rachele) unless stack_ready?(stack_name_rachele)
1715
1708
 
1716
1709
  stack_name_web = "ecs-task-web-qa-#{deploy_id}"
1717
- git_checkout_version('prima', @projects["prima"][:revision])
1710
+ git_checkout_version('prima', @projects["prima"]['revision'])
1718
1711
  stack_body = IO.read('projects/prima/app/cloudformation/tasks/web.yml')
1719
1712
  parameters = [
1720
1713
  {
@@ -1723,7 +1716,7 @@ class Release
1723
1716
  },
1724
1717
  {
1725
1718
  parameter_key: "ReleaseVersion",
1726
- parameter_value: "#{@projects["prima"][:revision]}"
1719
+ parameter_value: "#{@projects["prima"]['revision']}"
1727
1720
  },
1728
1721
  {
1729
1722
  parameter_key: "TaskDesiredCount",
@@ -1776,13 +1769,13 @@ class Release
1776
1769
  ]
1777
1770
  if stack_exists?(stack_name_web)
1778
1771
  cur_version = get_currently_deployed_version(stack_name_web)
1779
- update_stack(stack_name_web, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["prima"][:revision])
1772
+ update_stack(stack_name_web, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["prima"]['revision'])
1780
1773
  else
1781
1774
  create_stack(stack_name_web, stack_body, parameters, tags, @cf_role)
1782
1775
  end
1783
1776
 
1784
1777
  stack_name_consumer = "ecs-task-consumer-qa-#{deploy_id}"
1785
- git_checkout_version('prima', @projects["prima"][:revision])
1778
+ git_checkout_version('prima', @projects["prima"]['revision'])
1786
1779
  stack_body = IO.read('projects/prima/app/cloudformation/tasks/consumer.yml')
1787
1780
  parameters = [
1788
1781
  {
@@ -1791,7 +1784,7 @@ class Release
1791
1784
  },
1792
1785
  {
1793
1786
  parameter_key: "ReleaseVersion",
1794
- parameter_value: "#{@projects["prima"][:revision]}"
1787
+ parameter_value: "#{@projects["prima"]['revision']}"
1795
1788
  },
1796
1789
  {
1797
1790
  parameter_key: "ECSClusterName",
@@ -1820,13 +1813,13 @@ class Release
1820
1813
  ]
1821
1814
  if stack_exists?(stack_name_consumer)
1822
1815
  cur_version = get_currently_deployed_version(stack_name_consumer)
1823
- update_stack(stack_name_consumer, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["prima"][:revision])
1816
+ update_stack(stack_name_consumer, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["prima"]['revision'])
1824
1817
  else
1825
1818
  create_stack(stack_name_consumer, stack_body, parameters, tags, @cf_role)
1826
1819
  end
1827
1820
 
1828
1821
  stack_name_roger = "ecs-task-roger-qa-#{deploy_id}"
1829
- git_checkout_version('roger', @projects["roger"][:revision])
1822
+ git_checkout_version('roger', @projects["roger"]['revision'])
1830
1823
  stack_body = File.read('projects/roger/deploy/task.yml')
1831
1824
  parameters = [
1832
1825
  {
@@ -1835,7 +1828,7 @@ class Release
1835
1828
  },
1836
1829
  {
1837
1830
  parameter_key: "ReleaseVersion",
1838
- parameter_value: @projects["roger"][:revision]
1831
+ parameter_value: @projects["roger"]['revision']
1839
1832
  },
1840
1833
  {
1841
1834
  parameter_key: "TaskDesiredCount",
@@ -1856,7 +1849,7 @@ class Release
1856
1849
  ]
1857
1850
  if stack_exists?(stack_name_roger)
1858
1851
  cur_version = get_currently_deployed_version(stack_name_roger)
1859
- update_stack(stack_name_roger, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["roger"][:revision])
1852
+ update_stack(stack_name_roger, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["roger"]['revision'])
1860
1853
  else
1861
1854
  create_stack(stack_name_roger, stack_body, parameters, tags, @cf_role)
1862
1855
  end
@@ -1866,7 +1859,7 @@ class Release
1866
1859
  wait_for_stack_ready(stack_name_starsky) unless stack_ready?(stack_name_starsky) unless !deploy_starsky_hutch?
1867
1860
 
1868
1861
  stack_name_hutch = "ecs-task-hutch-qa-#{deploy_id}"
1869
- git_checkout_version('hutch', @projects["hutch"][:revision])
1862
+ git_checkout_version('hutch', @projects["hutch"]['revision'])
1870
1863
  stack_body = File.read('projects/hutch/deploy/task.yml')
1871
1864
  parameters = [
1872
1865
  {
@@ -1875,7 +1868,7 @@ class Release
1875
1868
  },
1876
1869
  {
1877
1870
  parameter_key: "ReleaseVersion",
1878
- parameter_value: "#{@projects["hutch"][:revision]}"
1871
+ parameter_value: "#{@projects["hutch"]['revision']}"
1879
1872
  },
1880
1873
  {
1881
1874
  parameter_key: "ALBShortName",
@@ -1904,7 +1897,7 @@ class Release
1904
1897
  ]
1905
1898
  if stack_exists?(stack_name_hutch)
1906
1899
  cur_version = get_currently_deployed_version(stack_name_hutch)
1907
- update_stack(stack_name_hutch, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["hutch"][:revision])
1900
+ update_stack(stack_name_hutch, stack_body, parameters, tags, @cf_role) unless cur_version.include?(@projects["hutch"]['revision'])
1908
1901
  else
1909
1902
  create_stack(stack_name_hutch, stack_body, parameters, tags, @cf_role)
1910
1903
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prima-twig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.53.37
4
+ version: 0.53.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Giachino