prima-twig 0.29.1 → 0.29.2
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 +0 -3
- data/lib/prima_aws_client.rb +15 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 82c5de77dba23b4247640637c0a8938b4383b745
|
|
4
|
+
data.tar.gz: 4fddd720f3e53548c20b810d4f2dbd7cd1ddb6fd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: afe872d0b53d43ba8049d3920cff89dbe67ded3ad2413e70bc53340f78d0e8d95770841149d0b84b8f41e6dc9585fd1504319e3c8de36f9afc43948d9ef4e0c0
|
|
7
|
+
data.tar.gz: b9b3740f90138a2fb5b443a13f61846b029ccad70a8ef20392fc85e1f65f0572d0681125d81dd5f8265385e6803a212e80882545344c3f7c8e4d5472ad253ee8
|
data/bin/twig-feature
CHANGED
|
@@ -26,7 +26,6 @@ class Release
|
|
|
26
26
|
@s3_bucket = 'prima-artifacts'
|
|
27
27
|
@artifact_path = '/tmp/prima-artifact.zip'
|
|
28
28
|
@import_db_task = 'arn:aws:ecs:eu-west-1:001575623345:task-definition/ecs-task-db-restore-TaskDefinitionDbRestore-19XD5OHZGOTI3:1'
|
|
29
|
-
@built_projects = {}
|
|
30
29
|
@prima_built = false
|
|
31
30
|
@urania_built = false
|
|
32
31
|
@ermes_built = false
|
|
@@ -1047,8 +1046,6 @@ class Release
|
|
|
1047
1046
|
host = "assange-#{@dns_record_identifier}.qa.colaster.com"
|
|
1048
1047
|
when stack_name.include?('borat')
|
|
1049
1048
|
host = "backoffice-#{@dns_record_identifier}.qa.colaster.com"
|
|
1050
|
-
when stack_name.include?('crash')
|
|
1051
|
-
host = "crash-#{@dns_record_identifier}.qa.colaster.com"
|
|
1052
1049
|
end
|
|
1053
1050
|
host
|
|
1054
1051
|
end
|
data/lib/prima_aws_client.rb
CHANGED
|
@@ -38,7 +38,21 @@ module PrimaAwsClient
|
|
|
38
38
|
output "La creazione dello stack #{stack_name} è stata avviata".green
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
-
def update_stack(stack_name,
|
|
41
|
+
def update_stack(stack_name, template_body, parameters = [], tags = [])
|
|
42
|
+
cf_client.update_stack(
|
|
43
|
+
stack_name: stack_name,
|
|
44
|
+
template_body: template_body,
|
|
45
|
+
parameters: parameters,
|
|
46
|
+
tags: tags,
|
|
47
|
+
capabilities: ['CAPABILITY_IAM']
|
|
48
|
+
)
|
|
49
|
+
rescue Aws::CloudFormation::Errors::ValidationError => e
|
|
50
|
+
raise e
|
|
51
|
+
else
|
|
52
|
+
output "L'update dello stack #{stack_name} è stato avviato".green
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
def update_stack_url(stack_name, template_url, parameters = [], tags = [])
|
|
42
56
|
cf_client.update_stack(
|
|
43
57
|
stack_name: stack_name,
|
|
44
58
|
template_url: template_url,
|