prima-twig 0.49.11 → 0.49.12
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 +16 -10
- 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: e5f5f3edf5295a7404dc238af65881169463e0633c7b312c7ba95b7a320d7964
|
4
|
+
data.tar.gz: cd89d46bc7da0e1fdcfe88b3c92bc0b382e6c9d5966129e4cd985bc794e2df28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc959637e9b8810fa62cd65c5abb3b8b873cc09b264c7deff6401a7f7b520921bc8eccbe00ce3058019e3ac6d7dae0a65597a8525b03c609db786811fd72b089
|
7
|
+
data.tar.gz: 5c42d0ebfd641f2e0a747520c5bf110c9948bc0491ccd5890edcf9cf302314cb22ccae407727e40c288e0be20f100e998d8ef840e4240264068141181fca381e
|
data/bin/twig-feature
CHANGED
@@ -15,13 +15,13 @@ class Release
|
|
15
15
|
|
16
16
|
def initialize(update_gem=true)
|
17
17
|
@prima = Prima.new
|
18
|
-
if update_gem
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
end
|
18
|
+
# if update_gem
|
19
|
+
# output 'Controllo se ci sono aggiornamenti da fare (potrebbe richiedere qualche minuto)'
|
20
|
+
# unless `gem update prima-twig`=="Updating installed gems\nNothing to update\n"
|
21
|
+
# output 'Gemma prima-twig aggiornata'
|
22
|
+
# exec "twig feature #{ARGV.join ' '}"
|
23
|
+
# end
|
24
|
+
# end
|
25
25
|
@cf = Aws::CloudFormation::Client.new
|
26
26
|
@alb = Aws::ElasticLoadBalancingV2::Client.new
|
27
27
|
@ec2 = Aws::EC2::Client.new
|
@@ -765,7 +765,7 @@ class Release
|
|
765
765
|
create_asg_stack(asg_stack_name, tags) unless stack_exists?(asg_stack_name)
|
766
766
|
|
767
767
|
deploy_id = calculate_deploy_id
|
768
|
-
create_pyxis_artifact(@projects["pyxis-npm"][:revision], deploy_id)
|
768
|
+
create_pyxis_artifact(@projects["pyxis-npm"][:revision], deploy_id) if deploy_pyxis?
|
769
769
|
create_prima_artifact(@projects["prima"][:revision], @projects["prima"][:name], deploy_id, true) unless artifact_exists?('prima-artifacts-encrypted', "prima/#{@projects["prima"][:revision]}.tar.gz")
|
770
770
|
|
771
771
|
wait_for_stack_ready(stack_name_alb) unless stack_ready?(stack_name_alb)
|
@@ -938,7 +938,7 @@ class Release
|
|
938
938
|
]
|
939
939
|
create_stack(stack_name_db, stack_body, parameters, tags, @cf_role) unless stack_exists?(stack_name_db) # creazione asincrona stack dei db (~4 min)
|
940
940
|
|
941
|
-
create_pyxis_artifact(@projects["pyxis-npm"][:revision], deploy_id)
|
941
|
+
create_pyxis_artifact(@projects["pyxis-npm"][:revision], deploy_id) if deploy_pyxis?
|
942
942
|
create_prima_artifact(@projects["prima"][:revision], @projects["prima"][:name], deploy_id) unless artifact_exists?('prima-artifacts-encrypted', "prima/#{@projects["prima"][:revision]}.tar.gz")
|
943
943
|
# l'artefatto di prima viene creato sempre (puntamenti all'ambiente compilati nel js) e richiede molto più di 4 minuti
|
944
944
|
wait_for_stack_ready(stack_name_db) unless stack_ready?(stack_name_db) # dovrebbe essere istantaneo
|
@@ -2155,7 +2155,13 @@ class Release
|
|
2155
2155
|
end
|
2156
2156
|
|
2157
2157
|
def deploy_pyxis?
|
2158
|
-
!@projects['pyxis-npm'].empty? && @projects['pyxis-npm'][:name] != 'master' && !@projects['pyxis-npm'][:default_branch]
|
2158
|
+
output = !@projects['pyxis-npm'].empty? && @projects['pyxis-npm'][:name] != 'master' && !@projects['pyxis-npm'][:default_branch]
|
2159
|
+
if output do
|
2160
|
+
puts 'pyxis deve essere aggiornato'
|
2161
|
+
else
|
2162
|
+
puts 'pyxis non deve essere aggiornato'
|
2163
|
+
end
|
2164
|
+
return output
|
2159
2165
|
end
|
2160
2166
|
|
2161
2167
|
def deploy_crash?
|