prima-twig 0.61.2 → 0.61.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/twig-feature +4 -8
- 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: 3e1a2f450eda7f2979169bdcde697dbdea85df70e9aea5bcbb1f6011780b1d8f
|
4
|
+
data.tar.gz: 67099293b029c44f28d1d372580bccf71e4b462b76260820e139f4259649a609
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df6f2e27a5c5e3e43cf06f05b2dc63cf7aaf7b43454ce3ea4d47143c359aab601095084610cb3e17749969aaa113743359c90863afd8c0db3643a2a79daa908f
|
7
|
+
data.tar.gz: 56e9033439f8bf312e5f740b516012b93cf1b98c647543934d55c07fc6a0cbdd8fcd3872bbc8b5ac3838b425515b7c93fbff70e966db86c29f0692ff8bfaef29
|
data/bin/twig-feature
CHANGED
@@ -1532,10 +1532,6 @@ class Release
|
|
1532
1532
|
parameter_key: "WebQaBaseHostname",
|
1533
1533
|
parameter_value: "#{@dns_record_identifier}.qa.colaster.com"
|
1534
1534
|
},
|
1535
|
-
{
|
1536
|
-
parameter_key: "HostnamePattern",
|
1537
|
-
parameter_value: "ww*-#{@dns_record_identifier}.qa.colaster.com"
|
1538
|
-
},
|
1539
1535
|
{
|
1540
1536
|
parameter_key: "HostnamePatternPriority",
|
1541
1537
|
parameter_value: hostname_pattern_priority
|
@@ -1566,7 +1562,7 @@ class Release
|
|
1566
1562
|
},
|
1567
1563
|
{
|
1568
1564
|
parameter_key: "HostnamePattern",
|
1569
|
-
parameter_value: "www-#{@dns_record_identifier}
|
1565
|
+
parameter_value: "www-#{@dns_record_identifier}.*"
|
1570
1566
|
}
|
1571
1567
|
]
|
1572
1568
|
if stack_exists?(stack_name_web)
|
@@ -2009,7 +2005,7 @@ class Release
|
|
2009
2005
|
end
|
2010
2006
|
|
2011
2007
|
def launch_lighthouse_test(url, device)
|
2012
|
-
@cloudflare.post("zones/1fb634f19c43dfb0162cc4cb91915da2/dns_records", {type: 'CNAME', name: "
|
2008
|
+
@cloudflare.post("zones/1fb634f19c43dfb0162cc4cb91915da2/dns_records", {type: 'CNAME', name: "www-#{@dns_record_identifier}", content: url, proxied: true, ttl: 1}) unless get_lighthouse_dns()
|
2013
2009
|
|
2014
2010
|
@batch.submit_job({
|
2015
2011
|
job_name: "lighthouse-#{device}-#{@dns_record_identifier}",
|
@@ -2019,7 +2015,7 @@ class Release
|
|
2019
2015
|
environment: [
|
2020
2016
|
{
|
2021
2017
|
name: "URL_TO_TEST",
|
2022
|
-
value: "
|
2018
|
+
value: "https://www-#{@dns_record_identifier}.prima.it/?supeprima"
|
2023
2019
|
},
|
2024
2020
|
{
|
2025
2021
|
name: "DEVICE",
|
@@ -2031,7 +2027,7 @@ class Release
|
|
2031
2027
|
end
|
2032
2028
|
|
2033
2029
|
def get_lighthouse_dns()
|
2034
|
-
dns_records = @cloudflare.get("zones/1fb634f19c43dfb0162cc4cb91915da2/dns_records", {per_page: 100, type: 'CNAME', name: "
|
2030
|
+
dns_records = @cloudflare.get("zones/1fb634f19c43dfb0162cc4cb91915da2/dns_records", {per_page: 100, type: 'CNAME', name: "www-#{@dns_record_identifier}.prima.it"})
|
2035
2031
|
if dns_records.body[:result_info][:count] > 0
|
2036
2032
|
return dns_records.body[:result][0][:id]
|
2037
2033
|
end
|