predrags_dummy_pipelines 0.8.3 → 0.8.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b6cce8464e0ec78028c1efd5df574aa23bb814ee
4
- data.tar.gz: a4aa4a1cceadc77c31ad705215e31a2cf4c0122c
3
+ metadata.gz: f1aa2ed7571fd0c426ebb2e81c7fb65a921adc49
4
+ data.tar.gz: e685591eb6e7f9bc4ac05bd7be7ec84b8e933494
5
5
  SHA512:
6
- metadata.gz: c37350476d71e5701ab860cda931a9f32c4253fd7e10168ac7a485d716e939b56caabfdb5cf16293ed715eb778482ac3d8697cf159c5a983a508d745705624d0
7
- data.tar.gz: 5e585ebfa807e6e57fa8566ebf6d315e95388fb79902d8a1625e52131a74fbe849360b54bd4933256bab0671fe716d97dabcebc338fb61ffdb931cb871dd96fd
6
+ metadata.gz: cd72a823f41e998b9f270ac3c4cc1de3b21c03cb7f1ee457417ed3fd9d0cc327f6c915145389b082cd4b3777db9d73fd7525b709721295a14f1ab111690ab959
7
+ data.tar.gz: 6fb85ff0b9c71469372fff9c7fad6a0fca08d699385db80e346213f0cdeaa66714f0a03dd0c554940cbeb1407ee2e9823b5e177358a8f7bd51cc7728f7536352
@@ -32,8 +32,8 @@ module PredragsDummyPipelines
32
32
  end
33
33
 
34
34
  def success_impl(results)
35
- return false if (results == [])
36
- results.each {|cmd| cmd[:estatus]}.all? {|status| status == 0}
35
+ return true if (results == [])
36
+ results.map {|cmd| cmd[:estatus]}.all? {|status| status == 0}
37
37
  end
38
38
 
39
39
  private
@@ -1,6 +1,8 @@
1
1
  module PredragsDummyPipelines
2
2
 
3
3
  class Pipeline
4
+ attr_reader :build
5
+
4
6
  def initialize(actions)
5
7
  @build = Exec.new(actions["build"], "build")
6
8
  deploys = actions.select {|a,b| a != "build"}
@@ -26,7 +28,7 @@ module PredragsDummyPipelines
26
28
  end
27
29
 
28
30
  def success?
29
- @build.success?
31
+ @build.success? and @deploys.map {|deploy| deploy.success?}.all? {|estat| estat == true}
30
32
  end
31
33
  end
32
34
 
@@ -1,3 +1,3 @@
1
1
  module PredragsDummyPipelines
2
- VERSION = "0.8.3"
2
+ VERSION = "0.8.5"
3
3
  end
@@ -4,7 +4,6 @@ build:
4
4
  - df -h
5
5
  test:
6
6
  - free -m
7
- - kjh
8
7
 
9
8
  integration:
10
9
  cmd:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: predrags_dummy_pipelines
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3
4
+ version: 0.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Predrag Rakic