prima-twig 0.50.82 → 0.50.83

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e4b7521a2e0340067239c7dd0220e9ca26afb4d623c6bfe3d9ab3f4ad2a04fc
4
- data.tar.gz: 6607d7505bca85cb2af08d4a356154837a2b3a729965aa930382a7753f00bdd0
3
+ metadata.gz: c30ecd946bf87879c09c3b19eabc6874a834b8439c1c3cf29becf6757a350be4
4
+ data.tar.gz: ad4b1e214ab16f4fb7add40e5f4b494e3514433716410af9e84eda0388e53dd1
5
5
  SHA512:
6
- metadata.gz: ef44a0c61817e936706d3eb6f41734a7a4ea5f0a00a619ee8b4e8bdbd96be6504003c277efc4ed7bce2ad517335bb2dd7bd4b0d0afc34e32044455eca16434de
7
- data.tar.gz: 75b6186fa1bfd534dc03780c830fb3d4472523fba9d2b66cf190aba9b8876c51ec8a0c740ae210ce0beeadd4c9cba66ac66229f2a7d12bbc3752eb6e80c277f4
6
+ metadata.gz: 3bd869504e4c0e9a18b115ef653c5f98360063801b6db1a4a3a664a296bb7953b35097b2c09dcce13b3a9aa4f0722b16cf77ac679379bc0e558ec6930c1efd7c
7
+ data.tar.gz: d7c72ab0335db4faa97cd3b3b1bf1de50ce034d2df61b5c0e8ce71d5f9a4daef62d43937fad00987068aae5ab35e32821c910886a90554f6d56c3294a8b45929
@@ -142,9 +142,23 @@ class Review
142
142
  mail.delivery_method(:smtp, opts)
143
143
  mail.deliver
144
144
 
145
+ invalidate_prismic_cache
146
+
145
147
  exec_step "terminal-notifier -message 'Deploy terminato'" if which 'terminal-notifier'
146
148
  end
147
149
 
150
+ def invalidate_prismic_cache
151
+ [
152
+ "guarantee",
153
+ "glossary",
154
+ "guide",
155
+ "faq"
156
+ ].each do |page|
157
+
158
+ exec_step "curl -X POST -H \"Content-Type: application/json\" https://www.prima.it/api/cms/update/#{page}?apikey=#{@prima.config['prima_apikey']}"
159
+ end
160
+ end
161
+
148
162
  def reload_parameters!
149
163
  artifact_rev = ''
150
164
  resp = @cf.describe_stacks({
@@ -1613,7 +1613,7 @@ class Release
1613
1613
  },
1614
1614
  {
1615
1615
  parameter_key: "ReleaseVersion",
1616
- parameter_value: "#{@projects["rogoreport"][:revision]}"
1616
+ parameter_value: "#{@projects["starsky"][:revision]}"
1617
1617
  },
1618
1618
  {
1619
1619
  parameter_key: "TaskDesiredCount",
@@ -13,7 +13,7 @@ class Prima
13
13
  LABEL_HOTFIX='hotfix'
14
14
  LABEL_NEXT_RELEASE='next release'
15
15
  LABEL_IN_STAGING='in staging'
16
- CONFIG_KEYS=['github', 'mandrill', 'sparkpost', 'cloudflare_email', 'cloudflare_apikey', 'aws_username', 'aws_password']
16
+ CONFIG_KEYS=['github', 'mandrill', 'sparkpost', 'cloudflare_email', 'cloudflare_apikey', 'aws_username', 'aws_password', 'prima_apikey']
17
17
  attr_reader :gh, :twig, :config, :rugged, :aws
18
18
 
19
19
  def initialize
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.50.82
4
+ version: 0.50.83
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Giachino
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2019-09-16 00:00:00.000000000 Z
17
+ date: 2019-09-19 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: aws-sdk