prima-twig 0.58.500 → 0.58.501

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2872c7cc2824d90896f1b33bbe5151ddbc5e65a15dfd537edcc555b563a50e0
4
- data.tar.gz: 4253b77f3afaef765ee656855762d610759a3bee401d543588102891ec36acc6
3
+ metadata.gz: 32a073f1d5d72c5fb35e63d291c31a47ea9ec62a76f3709b5289bd7df9e84aa8
4
+ data.tar.gz: c6da4cad0929faa04120cb01eeaf1d784aca0608913cb5c18f31a63813b1bfc3
5
5
  SHA512:
6
- metadata.gz: f1a968ea6a72c00da98765377f9b4ee9da0c5c540ef4543eb834ce1a2d5512b5e819343ee71860708cf89f3ca188aae74787ef785ff09ebe301abe1ab04b4a45
7
- data.tar.gz: e30de2cd8d56988682991079835f00dd65bef3f10e803c5368c12cb3d62fed0e661dc1a4f66a3324f54fbb1056785016d8cd3698744986ec5a7ddfed9caaaef8
6
+ metadata.gz: cfcb08920aee9b1c377ab84dcf2934639d1ca0c96a2526f1fa36018dcfd3ff86d98bd41fc6d601473e602bc7c0bcdd403307b5d5d48b314eb5bbb77434be3347
7
+ data.tar.gz: 532f40593e45d53813aa4140f36a6e8badcb7d42161968d7c6a318b1fe911821eb9ac45e83c431ddaf491a4f437ba60704996b199ae0d3dcbb3ff9ab05c7cc04
@@ -68,7 +68,8 @@ class Build
68
68
  when 'infrastructure'
69
69
  create_infrastructure_stacks!
70
70
  when 'project'
71
- eval("Build.create_#{args[1]}_stack()")
71
+ proj_method = "create_#{args[1]}_stack"
72
+ self.send(proj_method.to_sym)
72
73
  when 'complete'
73
74
  complete_qa_setup!
74
75
  when 'shutdown'
@@ -474,6 +474,8 @@ class Release
474
474
 
475
475
  File.open('branch_names', 'w') { |file| file.write(JSON.generate(@projects)) }
476
476
 
477
+ update_drone_yml!
478
+
477
479
  `git add projects && \
478
480
  git add branch_names && \
479
481
  git commit -m '#{branch_name}' && \
@@ -519,6 +521,8 @@ class Release
519
521
 
520
522
  File.open('branch_names', 'w') { |file| file.write(JSON.generate(@projects)) }
521
523
 
524
+ update_drone_yml!
525
+
522
526
  `git commit -am 'update'`
523
527
  `git push && git checkout master`
524
528
  end
@@ -635,6 +639,16 @@ class Release
635
639
  end
636
640
  end
637
641
 
642
+ def update_drone_yml!()
643
+ drone_yml = File.read('.drone.yml')
644
+ @projects.each do |key, project|
645
+ drone_yml = drone_yml.gsub("#{key}_placeholder", project['name'])
646
+ end
647
+ File.open(".drone.yml", "w") do |f|
648
+ f.write(drone_yml)
649
+ end
650
+ end
651
+
638
652
  def get_s3_config_files
639
653
  # manteniamo la struttura per lanciarlo facilmente anche da locale
640
654
  `mkdir -p cloudformation/stacks/task cloudformation/stacks/route53 cloudformation/stacks/asg cloudformation/stacks/elb`
@@ -340,7 +340,6 @@ module PrimaAwsClient
340
340
  def wait_for_artifact(bucket, path)
341
341
  ready = false
342
342
  sleep_seconds = 13
343
- sleep 10
344
343
  output "Attendo che lo sia pronto l'artefatto #{path}...\n".yellow
345
344
  while !ready
346
345
  ready = true if artifact_exists?(bucket, path)
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.58.500
4
+ version: 0.58.501
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Giachino