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 +4 -4
- data/bin/twig-build +2 -1
- data/bin/twig-feature +14 -0
- data/lib/prima_aws_client.rb +0 -1
- 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: 32a073f1d5d72c5fb35e63d291c31a47ea9ec62a76f3709b5289bd7df9e84aa8
|
4
|
+
data.tar.gz: c6da4cad0929faa04120cb01eeaf1d784aca0608913cb5c18f31a63813b1bfc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfcb08920aee9b1c377ab84dcf2934639d1ca0c96a2526f1fa36018dcfd3ff86d98bd41fc6d601473e602bc7c0bcdd403307b5d5d48b314eb5bbb77434be3347
|
7
|
+
data.tar.gz: 532f40593e45d53813aa4140f36a6e8badcb7d42161968d7c6a318b1fe911821eb9ac45e83c431ddaf491a4f437ba60704996b199ae0d3dcbb3ff9ab05c7cc04
|
data/bin/twig-build
CHANGED
@@ -68,7 +68,8 @@ class Build
|
|
68
68
|
when 'infrastructure'
|
69
69
|
create_infrastructure_stacks!
|
70
70
|
when 'project'
|
71
|
-
|
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'
|
data/bin/twig-feature
CHANGED
@@ -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`
|
data/lib/prima_aws_client.rb
CHANGED
@@ -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)
|