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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1aa2ed7571fd0c426ebb2e81c7fb65a921adc49
|
4
|
+
data.tar.gz: e685591eb6e7f9bc4ac05bd7be7ec84b8e933494
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
36
|
-
results.
|
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
|
|
data/project/simple.yml
CHANGED