prima-twig 0.58.508 → 0.58.509

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-build +12 -6
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d96dd1d1adf4c32e3a2a8493ba2ed89d6866f276b0a4824315542d95d03f843
4
- data.tar.gz: 29673ff7ed024423a4406cafd7fa5cdd90a59d1bc246f977e29bb9ca8229cb84
3
+ metadata.gz: 6d7efabe467aabe7d0b7c8bdb1db47dae48d875c8d8ec86e84611a163e8b193a
4
+ data.tar.gz: f0bd66f5c5999dd5bed1bbc6b203585f202059ae7ed81dbab266d714da2a72ee
5
5
  SHA512:
6
- metadata.gz: fbdfb7d0b553148ac592d89129dab06cf927767d12c22578e4afafbfc3cf5ffa33fec1cc184bac26359a25cafeac9d2960b8e266305eb83b3ef8bf2d0f638200
7
- data.tar.gz: 1e18c396705dd225d6844774e6cf3436299f7bff9dd4b61a639bffbbc5a287a25f5e0de5caf80d3f68eee23f409810c2bfe77f20bd40dacacc5d204beafdbe0d
6
+ metadata.gz: ec5177ad64ac62333c9f1850c521e22b964f887911ef7db6fafff3dfbc7a29d893c434104f42bd190f066877dd867ac2b93a552d49b6756c265a1015179f118e
7
+ data.tar.gz: 3aececf6beac593056a3652793fd403a19fa0681024e8d18020277158bd894a3f7abf2f119d9a386547a823cabc165bc5ae78c2bb71774aae9d889d7dfa37f90
@@ -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
- complete_qa_setup!
75
- when 'shutdown'
76
- output 'Shutting down'.green
77
- qainit_drone_shutdown!
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
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.508
4
+ version: 0.58.509
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Giachino