henry-container 0.1.54 → 0.1.55
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/henry/container/version.rb +1 -1
- data/lib/henry/container.rb +7 -7
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ed5f635ba7153a1c77e24cbb61ff82de1fe2d81
|
4
|
+
data.tar.gz: 662b4be26b6733ed791ee65430f1e57880e63673
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8021e81b4615c7a179792c75cb9de8e7f002e65af7e24adcabf97f96be66f5242867a61a056613a2bf0e5efed835fdddc55d75b958fa80743a7d7e6864c4fd50
|
7
|
+
data.tar.gz: 1b491467ae8cd2cb7986288690ae9cd3a6be6d3934b43ff89916b11774356b47be84e8f104520278911520bc1528abd1dfdacf08395c406c1c3bc611b3070308
|
data/lib/henry/container.rb
CHANGED
@@ -39,7 +39,7 @@ module Henry
|
|
39
39
|
self.tasks.select {|task| task.enabled?}.each do |task|
|
40
40
|
task_params = (params['all'] || {}).merge(params[task.name] || {})
|
41
41
|
|
42
|
-
task.configure(task_params,self.task_extended_context(
|
42
|
+
task.configure(task_params,self.task_extended_context(task_params))
|
43
43
|
task.export_params(task_params)
|
44
44
|
task.export_config({output_directory:task.data.system[:output_directory]})
|
45
45
|
task.execution.params = task_params
|
@@ -219,19 +219,19 @@ module Henry
|
|
219
219
|
# Retrun the custom extended_context fo the given task.
|
220
220
|
# @note default_extended_context will be used for undefined keys.
|
221
221
|
#
|
222
|
-
# @param [
|
222
|
+
# @param [Hash] task_params the params of the target Task.
|
223
223
|
# @return [Hash] the Task custom extended context.
|
224
|
-
def extended_context(
|
225
|
-
|
224
|
+
def extended_context(task_params)
|
225
|
+
task_params['extended_context']
|
226
226
|
end
|
227
227
|
|
228
228
|
# Returns the custom execution_context for the given task.
|
229
229
|
# @note default_execution_context will be used for undefined keys.
|
230
230
|
#
|
231
|
-
# @param [
|
231
|
+
# @param [Hash] task_params the params of the target Task.
|
232
232
|
# @return [Hash] the Task custom execution_context.
|
233
|
-
def task_extended_context(
|
234
|
-
self.default_extended_context.merge(self.extended_context(
|
233
|
+
def task_extended_context(task_params)
|
234
|
+
self.default_extended_context.merge(self.extended_context(task_params) || {})
|
235
235
|
end
|
236
236
|
|
237
237
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: henry-container
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.55
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Decurnex
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
178
|
version: '0'
|
179
179
|
requirements: []
|
180
180
|
rubyforge_project:
|
181
|
-
rubygems_version: 2.0.
|
181
|
+
rubygems_version: 2.0.6
|
182
182
|
signing_key:
|
183
183
|
specification_version: 4
|
184
184
|
summary: The Ruby Container for Henry
|