canzea 0.1.119 → 0.1.120

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: e9b8c84880aa9c1049a2e39ee8656d4f17940333
4
- data.tar.gz: 4026a4d57dc187a85c8a7708a919ae72982677bd
3
+ metadata.gz: 4d91f9d465dae99e06c55f75f6401a9a1356d921
4
+ data.tar.gz: 9dc765cb5898aceaf9ae38750c58570359f48bd3
5
5
  SHA512:
6
- metadata.gz: a8095022e853d879ef57f049aa5617ad5f17d2809c0741b299df11d67663901d0af9bb3507aaa024f0640747a7840038b83d4ba300ddf1269315d0ce71222bce
7
- data.tar.gz: 3827e9f30211880e7fdae205ab515cb4e2a61497a3483b89ef947e22046d1fcb26ad8daf0b041eb20c0294d636e9c767a4fecbb777ac01e7882690dcc56d2110
6
+ metadata.gz: caaf51f00912ce71db8bc3daf161696f02dbb4746712dae881f25dc5f983c7bfee0fa89e8319f95a5b80a375864d778e163510ff5b96de4ca1ce40630053e8fb
7
+ data.tar.gz: 71ce8d0ccd9f07769ee770ccfa94a5d507b7d331eef81d6364c01c26b603a963198d5751824e6144f18111209625a450af18ee3217a6b46ef9bcdf947ffe5371
@@ -1,3 +1,3 @@
1
1
  module Canzea
2
- VERSION = "0.1.119"
2
+ VERSION = "0.1.120"
3
3
  end
data/lib/canzea.rb CHANGED
@@ -64,6 +64,7 @@ module Canzea
64
64
  option nil, :catalogTag, 'Specific tag of the catalog', argument: :required
65
65
  option nil, :gitRoot, 'Git root', argument: :required
66
66
 
67
+ option nil, :commit, 'Commit', argument: :required
67
68
  option nil, :role, 'Role', argument: :required
68
69
  option nil, :solution, 'Solution', argument: :required
69
70
  option nil, :task, 'Task', argument: :required
@@ -205,9 +206,9 @@ module Canzea
205
206
  end
206
207
 
207
208
  if lifecycle == 'patch'
208
- puts "-- Running patch step #{opts[:role]} #{opts[:solution]}"
209
+ puts "-- Running patch step #{opts[:commit]} #{opts[:solution]}"
209
210
  ps = PlanStep.new
210
- ps.runPhasePatch opts[:role], opts[:solution], test, Integer(opts.fetch(:task, 1))
211
+ ps.runPhasePatch opts[:commit], opts[:solution], test, Integer(opts.fetch(:task, 1))
211
212
  end
212
213
 
213
214
  if lifecycle == 'wire'
@@ -134,9 +134,9 @@ class PlanStep
134
134
  end
135
135
 
136
136
 
137
- def runPhasePatch (role, solution, test, task, ref="")
137
+ def runPhasePatch (commit, solution, test, task, ref="")
138
138
 
139
- plan = JSON.parse("{ \"plan\": [ { \"role\": \"#{role}\", \"solution\": \"#{solution}\" } ] }")
139
+ plan = JSON.parse("{ \"plan\": [ { \"commit\": \"#{commit}\", \"solution\": \"#{solution}\" } ] }")
140
140
 
141
141
  ENV['ES_REF'] = ref;
142
142
  ENV['ES_ROLE'] = role;
@@ -150,14 +150,12 @@ class PlanStep
150
150
 
151
151
  cmd = "undefined"
152
152
 
153
- commit = ENV['CATALOG_COMMIT']
154
-
155
- # patches/<commit>/role/solution
153
+ # patches/<commit>/<solution>
156
154
  begin
157
155
 
158
156
  plan['plan'].each do |item|
159
157
 
160
- root = "#{@basePath}/patches/#{item['role']}/#{item['solution']}"
158
+ root = "#{@basePath}/patches/#{item['commit']}/#{item['solution']}"
161
159
  if File.exist?(root) == false
162
160
  log "-- WARNING #{root} does not exist"
163
161
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canzea
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.119
4
+ version: 0.1.120
5
5
  platform: ruby
6
6
  authors:
7
7
  - Canzea Technologies