prima-twig 0.58.508 → 0.58.509
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-build +12 -6
- 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: 6d7efabe467aabe7d0b7c8bdb1db47dae48d875c8d8ec86e84611a163e8b193a
|
|
4
|
+
data.tar.gz: f0bd66f5c5999dd5bed1bbc6b203585f202059ae7ed81dbab266d714da2a72ee
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec5177ad64ac62333c9f1850c521e22b964f887911ef7db6fafff3dfbc7a29d893c434104f42bd190f066877dd867ac2b93a552d49b6756c265a1015179f118e
|
|
7
|
+
data.tar.gz: 3aececf6beac593056a3652793fd403a19fa0681024e8d18020277158bd894a3f7abf2f119d9a386547a823cabc165bc5ae78c2bb71774aae9d889d7dfa37f90
|
data/bin/twig-build
CHANGED
|
@@ -66,18 +66,24 @@ class Build
|
|
|
66
66
|
abort('Non sei nella cartella di qainit') unless Dir.pwd.match 'qainit$' or Dir.pwd.match '/drone/src'
|
|
67
67
|
case args[0]
|
|
68
68
|
when 'infrastructure'
|
|
69
|
-
create_infrastructure_stacks!
|
|
69
|
+
create_infrastructure_stacks! unless is_shutdown?
|
|
70
70
|
when 'project'
|
|
71
71
|
proj_method = "create_#{args[1]}_stack"
|
|
72
|
-
self.send(proj_method.to_sym)
|
|
72
|
+
self.send(proj_method.to_sym) unless is_shutdown?
|
|
73
73
|
when 'complete'
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
if is_shutdown?
|
|
75
|
+
output 'Shutting down'.green
|
|
76
|
+
qainit_drone_shutdown!
|
|
77
|
+
else
|
|
78
|
+
complete_qa_setup!
|
|
79
|
+
end
|
|
78
80
|
end
|
|
79
81
|
end
|
|
80
82
|
|
|
83
|
+
def is_shutdown?
|
|
84
|
+
return ENV['DRONE_COMMIT_MESSAGE'] == 'shutdown'
|
|
85
|
+
end
|
|
86
|
+
|
|
81
87
|
def qainit_drone_shutdown!
|
|
82
88
|
output "Recupero le informazioni sui QA attivi..."
|
|
83
89
|
stack_list, envs = get_stacks
|