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: e4002eaf9d7af65dfad725500e7a8ecf60605cef
4
- data.tar.gz: 25b88e4e699881b612ce2fc41966629a80d4e2e2
3
+ metadata.gz: 7af7fba4a86178b4911395a2f09a9a336ff5563b
4
+ data.tar.gz: 6012d7237ac8b6a145846b71b9a0ec52c0301477
5
5
  SHA512:
6
- metadata.gz: 6d09a71ec33ee3e483c9950cb2ec48550a64f80e5001f4e2936d23fd3d4b5bda1a8fda5f6a9a7c74705bcc08290a6ac726c361fa0c967029ffbbdc7f21484548
7
- data.tar.gz: 8c21003e276e36a2eff5c741efe994c903f7c2c0772b2d290060f027262ea2c9af67520e371b72b334c4922a2b70869821255e1e6794a84cad912a3a9aad3271
6
+ metadata.gz: 07d46f40ae9a2499e695b95f78ab0bdd2908ccf5890df9622212e6c7da7a74db26f19bf9240f37ece2d0efbaf618d80c3f2c100e31d9b84a6a2aa0ed33e4ea17
7
+ data.tar.gz: e34348ffb400321f8e06af2fa0e693531ac895e85f4989844e95a1393d5c5ee0902062884f1347293ada71e63432a029e6c8ede876ec1c36dbd5b030c63d99d6
@@ -35,5 +35,9 @@ module PredragsDummyPipelines
35
35
  def show
36
36
  [{exec_name: @name, cmd: @cmd, test: @test}, @cmd_results, @test_results]
37
37
  end
38
+
39
+ def results
40
+ [@cmd_results, @test_results]
41
+ end
38
42
  end
39
43
  end
@@ -1,3 +1,3 @@
1
1
  module PredragsDummyPipelines
2
- VERSION = "0.4.1"
2
+ VERSION = "0.5.1"
3
3
  end
@@ -5,9 +5,8 @@ require "psych"
5
5
  module PredragsDummyPipelines
6
6
  # Your code goes here...
7
7
 
8
- def new(file)
9
- actions = parse(file)
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.parse(file)
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
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.4.1
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Predrag Rakic