ops_team 1.19.1 → 1.19.2.rc1

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: 469f0ff284626ef31c3676c4879d9ba6bf2c5b2ab26f1eded98ad138db9e43db
4
- data.tar.gz: 8a59eb7631bf4c94a4f10121e84b5acadf9dc483a479907aa58221dcd8335973
3
+ metadata.gz: '00594beba2a2a4cc9f051947c360677fa6caccc8cbac8f3eb132d7fdd865155b'
4
+ data.tar.gz: bdeabb9c5e4df7ea9040b444b6d86169ea9e599dd12fddda52e9377f5116d2c9
5
5
  SHA512:
6
- metadata.gz: 34facaa5e42df409763c6d319b8bfdac8592f024ac81d63a38158280430addc7bbdb267be07222295df796b39cd983aee42543a790f9f276406fb7435292cc1d
7
- data.tar.gz: 3481a2b6ed57446e3f2d7addf14386710ce838401e9c1303b792e6e83250c2bb52e7f87695a62bcb0d776abcb5be4ace5652bede6cf495786fcc208b3794d785
6
+ metadata.gz: 91a3e5325ffd84b3b7b329b4b31cdec132e2b17912e7b3a289a3a409bb033578b0e37df892940f2bcb05f04e1cfbd2d6752cb8a5ee87ed9dc660757d5271c2f7
7
+ data.tar.gz: bf5bb53be5f30543d21327f193d66fc0d016943dc6d2434ba170bce9e3bd03cbf8b6c6acd6cb700be58505b858fb748b25edd5c9e0b94138d9652ffa4065d289
@@ -24,6 +24,8 @@ module Builtins
24
24
  Output.status("[#{dependency.type}] #{dependency.name}")
25
25
 
26
26
  meet_dependency(dependency)
27
+
28
+ break if dependency.failure? && exit_on_error?
27
29
  end
28
30
  end
29
31
 
@@ -56,6 +58,10 @@ module Builtins
56
58
  def fail_on_error?
57
59
  Options.get("up.fail_on_error") || false
58
60
  end
61
+
62
+ def exit_on_error?
63
+ Options.get("up.exit_on_error") || false
64
+ end
59
65
  end
60
66
  end
61
67
  end
data/lib/dependency.rb CHANGED
@@ -46,6 +46,10 @@ class Dependency
46
46
  @executor.nil? ? true : @executor.success?
47
47
  end
48
48
 
49
+ def failure?
50
+ !success?
51
+ end
52
+
49
53
  def output
50
54
  @executor&.output
51
55
  end
data/ops_team.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'ops_team'
5
- s.version = '1.19.1'
5
+ s.version = '1.19.2.rc1'
6
6
  s.authors = [
7
7
  'nickthecook@gmail.com'
8
8
  ]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ops_team
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.19.1
4
+ version: 1.19.2.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - nickthecook@gmail.com
@@ -248,11 +248,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
248
248
  version: '2.5'
249
249
  required_rubygems_version: !ruby/object:Gem::Requirement
250
250
  requirements:
251
- - - ">="
251
+ - - ">"
252
252
  - !ruby/object:Gem::Version
253
- version: '0'
253
+ version: 1.3.1
254
254
  requirements: []
255
- rubygems_version: 3.3.7
255
+ rubygems_version: 3.1.6
256
256
  signing_key:
257
257
  specification_version: 4
258
258
  summary: ops_team handles basic automation for your project, driven by self-documenting