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 +4 -4
- data/lib/canzea/version.rb +1 -1
- data/lib/canzea.rb +3 -2
- data/lib/plan-step-class.rb +4 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d91f9d465dae99e06c55f75f6401a9a1356d921
|
4
|
+
data.tar.gz: 9dc765cb5898aceaf9ae38750c58570359f48bd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: caaf51f00912ce71db8bc3daf161696f02dbb4746712dae881f25dc5f983c7bfee0fa89e8319f95a5b80a375864d778e163510ff5b96de4ca1ce40630053e8fb
|
7
|
+
data.tar.gz: 71ce8d0ccd9f07769ee770ccfa94a5d507b7d331eef81d6364c01c26b603a963198d5751824e6144f18111209625a450af18ee3217a6b46ef9bcdf947ffe5371
|
data/lib/canzea/version.rb
CHANGED
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[:
|
209
|
+
puts "-- Running patch step #{opts[:commit]} #{opts[:solution]}"
|
209
210
|
ps = PlanStep.new
|
210
|
-
ps.runPhasePatch opts[:
|
211
|
+
ps.runPhasePatch opts[:commit], opts[:solution], test, Integer(opts.fetch(:task, 1))
|
211
212
|
end
|
212
213
|
|
213
214
|
if lifecycle == 'wire'
|
data/lib/plan-step-class.rb
CHANGED
@@ -134,9 +134,9 @@ class PlanStep
|
|
134
134
|
end
|
135
135
|
|
136
136
|
|
137
|
-
def runPhasePatch (
|
137
|
+
def runPhasePatch (commit, solution, test, task, ref="")
|
138
138
|
|
139
|
-
plan = JSON.parse("{ \"plan\": [ { \"
|
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
|
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['
|
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
|