prima-twig 1.0.6 → 1.0.7
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-build +36 -5
- 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: 6ad01e05c7824c10ff510f4a5b7683e9a27fbc1e7da9918baa48b3cf6495220a
|
|
4
|
+
data.tar.gz: c7e315a1020316354261cfa86154033abfe4088526835663e1bda85f2269b70e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2c526ef3d6e611b58cac078611204d0eebf9f92d64c800d874ffb7820b3874c321e7a8e6eff49f26f16c3ed78f66d6d81a4fb203c739095fcdb8d7f3ba5ecea5
|
|
7
|
+
data.tar.gz: 3dc487db860569a006680bd60dfae90f1ea42cd59546f57b51f6f1dacf0c1a8eba994ca220794bb03d7fb907dbe730388328436495a41c591697810f4ea0184f
|
data/bin/twig-build
CHANGED
|
@@ -1165,8 +1165,39 @@ class Build
|
|
|
1165
1165
|
parameter_value: get_ecs_cluster_name
|
|
1166
1166
|
},
|
|
1167
1167
|
{
|
|
1168
|
-
parameter_key: "
|
|
1168
|
+
parameter_key: "AssangeHostname",
|
|
1169
|
+
parameter_value: "assange-#{get_deploy_id}.qa.colaster.com"
|
|
1170
|
+
},
|
|
1171
|
+
{
|
|
1172
|
+
parameter_key: "BackofficeHostname",
|
|
1173
|
+
parameter_value: "backoffice-#{get_deploy_id}.qa.colaster.com"
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
parameter_key: "WebHostname",
|
|
1169
1177
|
parameter_value: "www-#{get_deploy_id}.qa.colaster.com"
|
|
1178
|
+
}
|
|
1179
|
+
]
|
|
1180
|
+
if stack_exists?(stack_name_consumer)
|
|
1181
|
+
cur_version = get_currently_deployed_version(stack_name_consumer)
|
|
1182
|
+
update_stack(stack_name_consumer, stack_body, parameters, @tags, @cf_role) unless cur_version.include?(@projects["prima"]['revision'])
|
|
1183
|
+
else
|
|
1184
|
+
create_stack(stack_name_consumer, stack_body, parameters, @tags, @cf_role)
|
|
1185
|
+
end
|
|
1186
|
+
|
|
1187
|
+
stack_name_consumer_api = get_stack_name("consumer-api")
|
|
1188
|
+
stack_body = IO.read('projects/prima/app/cloudformation/tasks/consumer-api.yml')
|
|
1189
|
+
parameters = [
|
|
1190
|
+
{
|
|
1191
|
+
parameter_key: "Environment",
|
|
1192
|
+
parameter_value: "qa"
|
|
1193
|
+
},
|
|
1194
|
+
{
|
|
1195
|
+
parameter_key: "ReleaseVersion",
|
|
1196
|
+
parameter_value: "#{@projects["prima"]['revision']}"
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
parameter_key: "ECSClusterName",
|
|
1200
|
+
parameter_value: get_ecs_cluster_name
|
|
1170
1201
|
},
|
|
1171
1202
|
{
|
|
1172
1203
|
parameter_key: "AssangeHostname",
|
|
@@ -1193,11 +1224,11 @@ class Build
|
|
|
1193
1224
|
parameter_value: "#{get_deploy_id}.qa.colaster.com"
|
|
1194
1225
|
}
|
|
1195
1226
|
]
|
|
1196
|
-
if stack_exists?(
|
|
1197
|
-
cur_version = get_currently_deployed_version(
|
|
1198
|
-
update_stack(
|
|
1227
|
+
if stack_exists?(stack_name_consumer_api)
|
|
1228
|
+
cur_version = get_currently_deployed_version(stack_name_consumer_api)
|
|
1229
|
+
update_stack(stack_name_consumer_api, stack_body, parameters, @tags, @cf_role) unless cur_version.include?(@projects["prima"]['revision'])
|
|
1199
1230
|
else
|
|
1200
|
-
create_stack(
|
|
1231
|
+
create_stack(stack_name_consumer_api, stack_body, parameters, @tags, @cf_role)
|
|
1201
1232
|
end
|
|
1202
1233
|
end
|
|
1203
1234
|
|