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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/twig-feature +16 -10
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b16265bcb401712b1630319a7806bbed7f87ef6e31f1afcb24b0243918efe4b3
4
- data.tar.gz: 5d7a5b4a78a2a4821c08ec8324a143b74a81ccb9afe6485c79255e2fafbc978f
3
+ metadata.gz: e5f5f3edf5295a7404dc238af65881169463e0633c7b312c7ba95b7a320d7964
4
+ data.tar.gz: cd89d46bc7da0e1fdcfe88b3c92bc0b382e6c9d5966129e4cd985bc794e2df28
5
5
  SHA512:
6
- metadata.gz: a097082c85d8ddf953f7042777151da34a6ce18c267acfa2d7304e9a86c506737bbf1d7c59150355fa88830393142d71167784c1ae945b3be846a04b492d0d3b
7
- data.tar.gz: 3648ed6ae6232e0290a0f27a9784f3fdae798f665413c301d4bca584512868bf211264c96c0c52fb9467a38ea85a98907d071e035dce548d9fdfa6c14072d0b9
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
- 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
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) unless !deploy_pyxis?
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) unless !deploy_pyxis?
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?
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.49.11
4
+ version: 0.49.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Giachino