predrags_dummy_pipelines 0.4.1 → 0.5.1
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: 7af7fba4a86178b4911395a2f09a9a336ff5563b
|
4
|
+
data.tar.gz: 6012d7237ac8b6a145846b71b9a0ec52c0301477
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07d46f40ae9a2499e695b95f78ab0bdd2908ccf5890df9622212e6c7da7a74db26f19bf9240f37ece2d0efbaf618d80c3f2c100e31d9b84a6a2aa0ed33e4ea17
|
7
|
+
data.tar.gz: e34348ffb400321f8e06af2fa0e693531ac895e85f4989844e95a1393d5c5ee0902062884f1347293ada71e63432a029e6c8ede876ec1c36dbd5b030c63d99d6
|
@@ -5,9 +5,8 @@ require "psych"
|
|
5
5
|
module PredragsDummyPipelines
|
6
6
|
# Your code goes here...
|
7
7
|
|
8
|
-
def new(
|
9
|
-
actions = parse(
|
10
|
-
#Pipelines::Pipeline.new(actions)
|
8
|
+
def self.new(yaml)
|
9
|
+
actions = parse(yaml)
|
11
10
|
Pipeline.new(actions)
|
12
11
|
end
|
13
12
|
|
@@ -17,9 +16,12 @@ module PredragsDummyPipelines
|
|
17
16
|
def self.parse_
|
18
17
|
parse("project/simple.yml")
|
19
18
|
end
|
20
|
-
def self.
|
19
|
+
def self.parse_file(file)
|
21
20
|
project = Psych.load_file(file)
|
22
21
|
end
|
22
|
+
def self.parse(actions)
|
23
|
+
Psych.load(actions)
|
24
|
+
end
|
23
25
|
|
24
26
|
|
25
27
|
class Pipeline
|
@@ -38,6 +40,10 @@ module PredragsDummyPipelines
|
|
38
40
|
puts @build.show
|
39
41
|
@deploys.map {|deploy| puts deploy.show }
|
40
42
|
end
|
43
|
+
|
44
|
+
def build_results
|
45
|
+
@build.results
|
46
|
+
end
|
41
47
|
end
|
42
48
|
|
43
49
|
def self.test
|