prima-twig 0.29.3 → 0.29.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/twig-feature +37 -37
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 89c13f354e334221d6522824e39e1de64f61a5d2
|
|
4
|
+
data.tar.gz: '0479b6f5ee287503c95220dbab1742ea0053aaeb'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aeb2b596a90a9720f755ed42dcff4976003480917a90c22567c21015ea047bdee1eb216f13dfa68f2dfcc2f8fadce8b999fbf28305531e4ad4f87dd93c4bb5bd
|
|
7
|
+
data.tar.gz: 425dfa3ccb39579d408936af76df798f2ee5326b3f86ec2309da52174a7ebaac26f69fdb16522173be0d810de24823a4a79a3a0a927e1da20b16d5b551b6719a
|
data/bin/twig-feature
CHANGED
|
@@ -27,17 +27,6 @@ class Release
|
|
|
27
27
|
@s3_bucket = 'prima-artifacts'
|
|
28
28
|
@artifact_path = '/tmp/prima-artifact.zip'
|
|
29
29
|
@import_db_task = 'arn:aws:ecs:eu-west-1:001575623345:task-definition/ecs-task-db-restore-TaskDefinitionDbRestore-19XD5OHZGOTI3:1'
|
|
30
|
-
@prima_built = false
|
|
31
|
-
@urania_built = false
|
|
32
|
-
@ermes_built = false
|
|
33
|
-
@bburago_built = false
|
|
34
|
-
@hal9000_built = false
|
|
35
|
-
@fidaty_built = false
|
|
36
|
-
@backoffice_built = false
|
|
37
|
-
@peano_built = false
|
|
38
|
-
@rogoreport_built = false
|
|
39
|
-
@assange_built = false
|
|
40
|
-
@borat_built = false
|
|
41
30
|
@dns_record_identifier = nil
|
|
42
31
|
@ecs_cluster_name = nil
|
|
43
32
|
@projects = {
|
|
@@ -223,7 +212,7 @@ class Release
|
|
|
223
212
|
end
|
|
224
213
|
|
|
225
214
|
update_stack(stack_name_web, get_stack_template(stack_name_web), parameters)
|
|
226
|
-
|
|
215
|
+
|
|
227
216
|
wait_for_stack_ready(stack_name_web) unless stack_ready?(stack_name_web)
|
|
228
217
|
end
|
|
229
218
|
|
|
@@ -523,7 +512,8 @@ class Release
|
|
|
523
512
|
}
|
|
524
513
|
]
|
|
525
514
|
if stack_exists?(stack_name_web)
|
|
526
|
-
|
|
515
|
+
cur_version = get_currently_deployed_version(stack_name_web)
|
|
516
|
+
update_stack(stack_name_web, stack_body, parameters) unless cur_version.include?(@projects["prima"][:revision])
|
|
527
517
|
else
|
|
528
518
|
create_stack(stack_name_web, stack_body, parameters, tags)
|
|
529
519
|
end
|
|
@@ -546,7 +536,8 @@ class Release
|
|
|
546
536
|
}
|
|
547
537
|
]
|
|
548
538
|
if stack_exists?(stack_name_consumer)
|
|
549
|
-
|
|
539
|
+
cur_version = get_currently_deployed_version(stack_name_consumer)
|
|
540
|
+
update_stack(stack_name_consumer, stack_body, parameters) unless cur_version.include?(@projects["prima"][:revision])
|
|
550
541
|
else
|
|
551
542
|
create_stack(stack_name_consumer, stack_body, parameters, tags)
|
|
552
543
|
end
|
|
@@ -587,7 +578,8 @@ class Release
|
|
|
587
578
|
}
|
|
588
579
|
]
|
|
589
580
|
if stack_exists?(stack_name_urania)
|
|
590
|
-
|
|
581
|
+
cur_version = get_currently_deployed_version(stack_name_urania)
|
|
582
|
+
update_stack(stack_name_urania, stack_body, parameters) unless cur_version.include?(@projects["urania"][:revision])
|
|
591
583
|
else
|
|
592
584
|
create_stack(stack_name_urania, stack_body, parameters, tags)
|
|
593
585
|
end
|
|
@@ -610,7 +602,8 @@ class Release
|
|
|
610
602
|
}
|
|
611
603
|
]
|
|
612
604
|
if stack_exists?(stack_name_ermes)
|
|
613
|
-
|
|
605
|
+
cur_version = get_currently_deployed_version(stack_name_ermes)
|
|
606
|
+
update_stack(stack_name_ermes, stack_body, parameters) unless cur_version.include?(@projects["ermes"][:revision])
|
|
614
607
|
else
|
|
615
608
|
create_stack(stack_name_ermes, stack_body, parameters, tags)
|
|
616
609
|
end
|
|
@@ -651,7 +644,8 @@ class Release
|
|
|
651
644
|
}
|
|
652
645
|
]
|
|
653
646
|
if stack_exists?(stack_name_bburago)
|
|
654
|
-
|
|
647
|
+
cur_version = get_currently_deployed_version(stack_name_bburago)
|
|
648
|
+
update_stack(stack_name_bburago, stack_body, parameters) unless cur_version.include?(@projects["bburago"][:revision])
|
|
655
649
|
else
|
|
656
650
|
create_stack(stack_name_bburago, stack_body, parameters, tags)
|
|
657
651
|
end
|
|
@@ -692,7 +686,8 @@ class Release
|
|
|
692
686
|
}
|
|
693
687
|
]
|
|
694
688
|
if stack_exists?(stack_name_hal9000)
|
|
695
|
-
|
|
689
|
+
cur_version = get_currently_deployed_version(stack_name_hal9000)
|
|
690
|
+
update_stack(stack_name_hal9000, stack_body, parameters) unless cur_version.include?(@projects["hal9000"][:revision])
|
|
696
691
|
else
|
|
697
692
|
create_stack(stack_name_hal9000, stack_body, parameters, tags)
|
|
698
693
|
end
|
|
@@ -733,7 +728,8 @@ class Release
|
|
|
733
728
|
}
|
|
734
729
|
]
|
|
735
730
|
if stack_exists?(stack_name_fidaty)
|
|
736
|
-
|
|
731
|
+
cur_version = get_currently_deployed_version(stack_name_fidaty)
|
|
732
|
+
update_stack(stack_name_fidaty, stack_body, parameters) unless cur_version.include?(@projects["fidaty"][:revision])
|
|
737
733
|
else
|
|
738
734
|
create_stack(stack_name_fidaty, stack_body, parameters, tags)
|
|
739
735
|
end
|
|
@@ -774,7 +770,8 @@ class Release
|
|
|
774
770
|
}
|
|
775
771
|
]
|
|
776
772
|
if stack_exists?(stack_name_peano)
|
|
777
|
-
|
|
773
|
+
cur_version = get_currently_deployed_version(stack_name_peano)
|
|
774
|
+
update_stack(stack_name_peano, stack_body, parameters) unless cur_version.include?(@projects["peano"][:revision])
|
|
778
775
|
else
|
|
779
776
|
create_stack(stack_name_peano, stack_body, parameters, tags)
|
|
780
777
|
end
|
|
@@ -801,7 +798,8 @@ class Release
|
|
|
801
798
|
}
|
|
802
799
|
]
|
|
803
800
|
if stack_exists?(stack_name_rogoreport)
|
|
804
|
-
|
|
801
|
+
cur_version = get_currently_deployed_version(stack_name_rogoreport)
|
|
802
|
+
update_stack(stack_name_rogoreport, stack_body, parameters) unless cur_version.include?(@projects["rogoreport"][:revision])
|
|
805
803
|
else
|
|
806
804
|
create_stack(stack_name_rogoreport, stack_body, parameters, tags)
|
|
807
805
|
end
|
|
@@ -840,7 +838,8 @@ class Release
|
|
|
840
838
|
}
|
|
841
839
|
]
|
|
842
840
|
if stack_exists?(stack_name_assange)
|
|
843
|
-
|
|
841
|
+
cur_version = get_currently_deployed_version(stack_name_assange)
|
|
842
|
+
update_stack(stack_name_assange, stack_body, parameters) unless cur_version.include?(@projects["assange"][:revision])
|
|
844
843
|
else
|
|
845
844
|
create_stack(stack_name_assange, stack_body, parameters, tags)
|
|
846
845
|
end
|
|
@@ -879,7 +878,8 @@ class Release
|
|
|
879
878
|
}
|
|
880
879
|
]
|
|
881
880
|
if stack_exists?(stack_name_borat)
|
|
882
|
-
|
|
881
|
+
cur_version = get_currently_deployed_version(stack_name_borat)
|
|
882
|
+
update_stack(stack_name_borat, stack_body, parameters) unless cur_version.include?(@projects["borat"][:revision])
|
|
883
883
|
else
|
|
884
884
|
create_stack(stack_name_borat, stack_body, parameters, tags)
|
|
885
885
|
end
|
|
@@ -918,7 +918,8 @@ class Release
|
|
|
918
918
|
}
|
|
919
919
|
]
|
|
920
920
|
if stack_exists?(stack_name_backoffice)
|
|
921
|
-
|
|
921
|
+
cur_version = get_currently_deployed_version(stack_name_backoffice)
|
|
922
|
+
update_stack(stack_name_backoffice, stack_body, parameters) unless cur_version.include?(@projects["backoffice"][:revision])
|
|
922
923
|
else
|
|
923
924
|
create_stack(stack_name_backoffice, stack_body, parameters, tags)
|
|
924
925
|
end
|
|
@@ -1011,7 +1012,7 @@ class Release
|
|
|
1011
1012
|
|
|
1012
1013
|
wait_for_stack_ready(stack_name_route53) unless stack_ready?(stack_name_route53)
|
|
1013
1014
|
|
|
1014
|
-
|
|
1015
|
+
launch_marley()
|
|
1015
1016
|
|
|
1016
1017
|
output "Prima url: https://#{prima_hostname}\n".cyan
|
|
1017
1018
|
output "Prima RI url: https://#{prima_hostname.sub("www", "wwwri")}\n".cyan
|
|
@@ -1176,7 +1177,6 @@ class Release
|
|
|
1176
1177
|
end
|
|
1177
1178
|
|
|
1178
1179
|
def create_urania_artifact(revision)
|
|
1179
|
-
@urania_built = true
|
|
1180
1180
|
output "Preparo l'artifact urania .zip\n".yellow
|
|
1181
1181
|
|
|
1182
1182
|
git_checkout_version('urania', revision)
|
|
@@ -1211,7 +1211,6 @@ class Release
|
|
|
1211
1211
|
end
|
|
1212
1212
|
|
|
1213
1213
|
def create_ermes_artifact(revision)
|
|
1214
|
-
@ermes_built = true
|
|
1215
1214
|
output "Preparo l'artifact ermes .zip\n".yellow
|
|
1216
1215
|
|
|
1217
1216
|
git_checkout_version('ermes', revision)
|
|
@@ -1244,7 +1243,6 @@ class Release
|
|
|
1244
1243
|
end
|
|
1245
1244
|
|
|
1246
1245
|
def create_bburago_artifact(revision)
|
|
1247
|
-
@bburago_built = true
|
|
1248
1246
|
output "Preparo l'artifact bburago .zip\n".yellow
|
|
1249
1247
|
|
|
1250
1248
|
git_checkout_version('bburago', revision)
|
|
@@ -1279,7 +1277,6 @@ class Release
|
|
|
1279
1277
|
end
|
|
1280
1278
|
|
|
1281
1279
|
def create_hal9000_artifact(revision)
|
|
1282
|
-
@hal9000_built = true
|
|
1283
1280
|
output "Preparo l'artifact hal9000 .zip\n".yellow
|
|
1284
1281
|
|
|
1285
1282
|
git_checkout_version('hal9000', revision)
|
|
@@ -1315,7 +1312,6 @@ class Release
|
|
|
1315
1312
|
end
|
|
1316
1313
|
|
|
1317
1314
|
def create_fidaty_artifact(revision, deploy_id)
|
|
1318
|
-
@fidaty_built = true
|
|
1319
1315
|
output "Preparo l'artifact fidaty .zip\n".yellow
|
|
1320
1316
|
|
|
1321
1317
|
git_checkout_version('fidaty', revision)
|
|
@@ -1355,7 +1351,6 @@ class Release
|
|
|
1355
1351
|
end
|
|
1356
1352
|
|
|
1357
1353
|
def create_peano_artifact(revision)
|
|
1358
|
-
@peano_built = true
|
|
1359
1354
|
output "Preparo l'artifact peano .zip\n".yellow
|
|
1360
1355
|
|
|
1361
1356
|
git_checkout_version('peano', revision)
|
|
@@ -1394,7 +1389,6 @@ class Release
|
|
|
1394
1389
|
end
|
|
1395
1390
|
|
|
1396
1391
|
def create_rogoreport_artifact(revision, deploy_id)
|
|
1397
|
-
@rogoreport_built = true
|
|
1398
1392
|
output "Preparo l'artifact rogoreport .zip\n".yellow
|
|
1399
1393
|
|
|
1400
1394
|
git_checkout_version('rogoreport', revision)
|
|
@@ -1432,7 +1426,6 @@ class Release
|
|
|
1432
1426
|
end
|
|
1433
1427
|
|
|
1434
1428
|
def create_assange_artifact(revision)
|
|
1435
|
-
@assange_built = true
|
|
1436
1429
|
output "Preparo l'artifact assange .zip\n".yellow
|
|
1437
1430
|
|
|
1438
1431
|
git_checkout_version('assange', revision)
|
|
@@ -1468,7 +1461,6 @@ class Release
|
|
|
1468
1461
|
end
|
|
1469
1462
|
|
|
1470
1463
|
def create_borat_artifact(revision, deploy_id)
|
|
1471
|
-
@borat_built = true
|
|
1472
1464
|
output "Preparo l'artifact borat .zip\n".yellow
|
|
1473
1465
|
|
|
1474
1466
|
git_checkout_version('borat', revision)
|
|
@@ -1528,7 +1520,6 @@ class Release
|
|
|
1528
1520
|
end
|
|
1529
1521
|
|
|
1530
1522
|
def create_backoffice_artifact(revision, deploy_id)
|
|
1531
|
-
@backoffice_built = true
|
|
1532
1523
|
output "Preparo l'artifact backoffice .zip\n".yellow
|
|
1533
1524
|
|
|
1534
1525
|
git_checkout_version('backoffice', revision)
|
|
@@ -1574,7 +1565,6 @@ class Release
|
|
|
1574
1565
|
end
|
|
1575
1566
|
|
|
1576
1567
|
def create_prima_artifact(revision, branch_name, deploy_id)
|
|
1577
|
-
@prima_built = true
|
|
1578
1568
|
output "Preparo l'artifact prima .zip\n".yellow
|
|
1579
1569
|
|
|
1580
1570
|
git_checkout_version('prima', revision)
|
|
@@ -1811,10 +1801,20 @@ class Release
|
|
|
1811
1801
|
}
|
|
1812
1802
|
})
|
|
1813
1803
|
|
|
1814
|
-
|
|
1815
1804
|
output "Marley lanciato con successo!\n".green
|
|
1816
1805
|
end
|
|
1817
1806
|
|
|
1807
|
+
def get_currently_deployed_version(stack_name)
|
|
1808
|
+
parameters = get_stack_parameters(stack_name)
|
|
1809
|
+
currently_deployed_version = nil
|
|
1810
|
+
parameters.each do |parameter|
|
|
1811
|
+
if parameter.parameter_key == "ReleaseVersion"
|
|
1812
|
+
currently_deployed_version = parameter.parameter_value
|
|
1813
|
+
end
|
|
1814
|
+
end
|
|
1815
|
+
currently_deployed_version
|
|
1816
|
+
end
|
|
1817
|
+
|
|
1818
1818
|
def select_branches(project_name = nil)
|
|
1819
1819
|
output "Deploy feature menu"
|
|
1820
1820
|
if project_name.nil?
|
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.29.
|
|
4
|
+
version: 0.29.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matteo Giachino
|
|
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
197
197
|
version: '0'
|
|
198
198
|
requirements: []
|
|
199
199
|
rubyforge_project:
|
|
200
|
-
rubygems_version: 2.6.
|
|
200
|
+
rubygems_version: 2.6.12
|
|
201
201
|
signing_key:
|
|
202
202
|
specification_version: 4
|
|
203
203
|
summary: The Prima twig toolbelt
|