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 +4 -4
- data/bin/twig-deploy +14 -0
- data/bin/twig-feature +1 -1
- data/lib/prima_twig.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c30ecd946bf87879c09c3b19eabc6874a834b8439c1c3cf29becf6757a350be4
|
|
4
|
+
data.tar.gz: ad4b1e214ab16f4fb7add40e5f4b494e3514433716410af9e84eda0388e53dd1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3bd869504e4c0e9a18b115ef653c5f98360063801b6db1a4a3a664a296bb7953b35097b2c09dcce13b3a9aa4f0722b16cf77ac679379bc0e558ec6930c1efd7c
|
|
7
|
+
data.tar.gz: d7c72ab0335db4faa97cd3b3b1bf1de50ce034d2df61b5c0e8ce71d5f9a4daef62d43937fad00987068aae5ab35e32821c910886a90554f6d56c3294a8b45929
|
data/bin/twig-deploy
CHANGED
|
@@ -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({
|
data/bin/twig-feature
CHANGED
data/lib/prima_twig.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
17
|
+
date: 2019-09-19 00:00:00.000000000 Z
|
|
18
18
|
dependencies:
|
|
19
19
|
- !ruby/object:Gem::Dependency
|
|
20
20
|
name: aws-sdk
|