prima-twig 0.44.12 → 0.44.13
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 +17 -11
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9b0ec525fe0b98c249e74fb5b6a904d02112fd62908264d64152e2e7347656a3
|
|
4
|
+
data.tar.gz: 4686418d944f65eca2235c99f1a3090c78d92764b0a959b4d66340faae81c6cf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7441d167557bf6e5c4ec7d5d5a5e8f586721b78b7b86c82b6b6997c935d96be35f2c58efdc331b6e192f0b60a2a902cb473ce59fe6d4a402c7ee94e51d6bc889
|
|
7
|
+
data.tar.gz: 53c27d85d622b322b7ee948f51073c14921fa41ca2db95b8df2046d179bf66f3df671e63ead971f23ee709d2fe870498d4b1f6473cbe313d7551f728c7590f18
|
data/bin/twig-feature
CHANGED
|
@@ -984,9 +984,14 @@ class Release
|
|
|
984
984
|
create_stack(stack_name_db, stack_body, parameters, tags, @cf_role) unless stack_exists?(stack_name_db)
|
|
985
985
|
|
|
986
986
|
create_prima_artifact(@projects["prima"][:revision], @projects["prima"][:name], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "prima/#{@projects["prima"][:revision]}-#{deploy_id}.tar.gz")
|
|
987
|
-
|
|
987
|
+
|
|
988
|
+
wait_for_stack_ready(stack_name_db) unless stack_ready?(stack_name_db)
|
|
989
|
+
db_task = ''
|
|
990
|
+
db_task = import_dbs(ec2_ip_address(asg_stack_name)) unless stack_exists?("ecs-route53-qa-#{deploy_id}")
|
|
991
|
+
|
|
988
992
|
create_crash_artifact(@projects['crash'][:revision], deploy_id) unless !deploy_crash? || artifact_exists?('prima-artifacts-encrypted', "microservices/crash/#{@projects['crash'][:revision]}-#{deploy_id}-qa.tar.gz")
|
|
989
993
|
create_urania_artifact(@projects["urania"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/urania/#{@projects["urania"][:revision]}-qa.tar.gz")
|
|
994
|
+
create_roger_artifact(@projects["roger"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/roger/#{@projects["roger"][:revision]}-qa.tar.gz")
|
|
990
995
|
create_ermes_artifact(@projects["ermes"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/ermes/#{@projects["ermes"][:revision]}-qa.tar.gz")
|
|
991
996
|
create_bburago_artifact(@projects["bburago"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/bburago/#{@projects["bburago"][:revision]}-qa.tar.gz")
|
|
992
997
|
create_hal9000_artifact(@projects["hal9000"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/hal9000/#{@projects["hal9000"][:revision]}-qa.tar.gz")
|
|
@@ -998,8 +1003,7 @@ class Release
|
|
|
998
1003
|
create_activia_artifact(@projects["activia"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/activia/#{@projects["activia"][:revision]}-qa.tar.gz")
|
|
999
1004
|
create_skynet_artifact(@projects["skynet"][:revision]) unless artifact_exists?('prima-artifacts-encrypted', "microservices/skynet/#{@projects["skynet"][:revision]}-qa.tar.gz")
|
|
1000
1005
|
|
|
1001
|
-
|
|
1002
|
-
import_dbs(ec2_ip_address(asg_stack_name)) unless stack_exists?("ecs-route53-qa-#{deploy_id}")
|
|
1006
|
+
wait_for_db_import(db_task) unless stack_exists?("ecs-route53-qa-#{deploy_id}")
|
|
1003
1007
|
|
|
1004
1008
|
import_redis_crash(ec2_ip_address(asg_stack_name)) if deploy_crash? && !stack_exists?("ecs-task-web-qa-#{deploy_id}")
|
|
1005
1009
|
|
|
@@ -2735,22 +2739,24 @@ class Release
|
|
|
2735
2739
|
},
|
|
2736
2740
|
count: 1
|
|
2737
2741
|
})
|
|
2738
|
-
|
|
2742
|
+
return resp
|
|
2743
|
+
end
|
|
2744
|
+
|
|
2745
|
+
def wait_for_db_import(task)
|
|
2739
2746
|
output "Attendo che i DB vengano importati...\n".yellow
|
|
2740
2747
|
stopped_at = nil
|
|
2741
2748
|
sleep 15 # altrimenti non trova il task appena avviato...
|
|
2742
2749
|
while stopped_at.nil?
|
|
2743
|
-
if
|
|
2750
|
+
if task.tasks[0].nil?
|
|
2744
2751
|
pp @ecs_cluster_name
|
|
2745
|
-
pp
|
|
2746
|
-
pp resp
|
|
2752
|
+
pp task
|
|
2747
2753
|
stop_if true, "Task di import DB lanciato, ma risposta vuota!".red
|
|
2748
2754
|
end
|
|
2749
|
-
|
|
2750
|
-
cluster:
|
|
2751
|
-
tasks: [
|
|
2755
|
+
task = @ecs.describe_tasks({
|
|
2756
|
+
cluster: task.tasks[0].cluster_arn,
|
|
2757
|
+
tasks: [task.tasks[0].task_arn]
|
|
2752
2758
|
})
|
|
2753
|
-
stopped_at =
|
|
2759
|
+
stopped_at = task.tasks[0].stopped_at unless task.tasks[0].nil?
|
|
2754
2760
|
sleep_seconds = 10
|
|
2755
2761
|
seconds_elapsed = 0
|
|
2756
2762
|
while true && stopped_at.nil?
|