predrags_dummy_pipelines 0.6.1 → 0.6.2

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: d67a362415cc4991d8acf6e6565aaeebfa3a8e64
4
- data.tar.gz: ed27fea3814880b42e14bc256d195bea5a3a1b7f
3
+ metadata.gz: 85dc8de5ecce56b9b7d37387157c635315c51a2b
4
+ data.tar.gz: 8cf25f7c051789ddfccf743f6f8ff9b7913a2176
5
5
  SHA512:
6
- metadata.gz: 133bbf40ee9c054feaf8e11da5f2ba32c9ff1cc0d5aae504b5c5b39846f09f76475b81f69f82570f86474ca34d427dd89dd87e0af48d7ec335a814967a4e47da
7
- data.tar.gz: 5b43081022faf59141e2045dbba92b817e249b31e63d8666c2f34e565e5e694d3b42899a8fee1901d214ec1476e0539134df59100247989d54e67a46bda4573e
6
+ metadata.gz: 0dd20e75f5c835cd2a632bb2122198b45a2233c33000419d25ca06a9836e90a038ec88063be3b466506ad2f7ff75f64f49352b94478dea8029dae86bbca9128b
7
+ data.tar.gz: d0f1e9ffcddb4fa82d15e48a729af49d70d44e6d51196f5ebf2a4ec18e57f03d7ef0928096f53427083e25c239a7ca652340a0fa4ca54ae3aac60e9695ce728d
@@ -0,0 +1,25 @@
1
+ module PredragsDummyPipelines
2
+
3
+ class Pipeline
4
+ def initialize(actions)
5
+ @build = Exec.new(actions["build"], "build")
6
+ deploys = actions.select {|a,b| a != "build"}
7
+ @deploys = deploys.map {|key, value| Exec.new(value, key)}
8
+ end
9
+
10
+ def run
11
+ @build.run
12
+ @deploys.map {|deploy| deploy.run }
13
+ end
14
+
15
+ def show
16
+ puts @build.show
17
+ @deploys.map {|deploy| puts deploy.show }
18
+ end
19
+
20
+ def build_results
21
+ @build.results
22
+ end
23
+ end
24
+
25
+ end
@@ -1,3 +1,3 @@
1
1
  module PredragsDummyPipelines
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
@@ -1,5 +1,6 @@
1
1
  require "predrags_dummy_pipelines/version"
2
2
  require "predrags_dummy_pipelines/exec"
3
+ require "predrags_dummy_pipelines/pipeline"
3
4
  require "psych"
4
5
 
5
6
  module PredragsDummyPipelines
@@ -24,28 +25,6 @@ module PredragsDummyPipelines
24
25
  end
25
26
 
26
27
 
27
- class Pipeline
28
- def initialize(actions)
29
- @build = Exec.new(actions["build"], "build")
30
- deploys = actions.select {|a,b| a != "build"}
31
- @deploys = deploys.map {|key, value| Exec.new(value, key)}
32
- end
33
-
34
- def run
35
- @build.run
36
- @deploys.map {|deploy| deploy.run }
37
- end
38
-
39
- def show
40
- puts @build.show
41
- @deploys.map {|deploy| puts deploy.show }
42
- end
43
-
44
- def build_results
45
- @build.results
46
- end
47
- end
48
-
49
28
  def self.test
50
29
  a = PredragsDummyPipelines.parse_
51
30
  e = PredragsDummyPipelines::Pipeline.new a
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.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Predrag Rakic
@@ -70,6 +70,7 @@ files:
70
70
  - bin/setup
71
71
  - lib/predrags_dummy_pipelines.rb
72
72
  - lib/predrags_dummy_pipelines/exec.rb
73
+ - lib/predrags_dummy_pipelines/pipeline.rb
73
74
  - lib/predrags_dummy_pipelines/version.rb
74
75
  - predrags_dummy_pipelines.gemspec
75
76
  - project/simple.yml