henry-container 0.0.54 → 0.0.55
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.
- data/lib/henry/container/version.rb +1 -1
- data/lib/henry/container.rb +4 -3
- metadata +1 -1
data/lib/henry/container.rb
CHANGED
@@ -133,8 +133,9 @@ module Henry
|
|
133
133
|
# Retrun the custom extended_context fo the given task.
|
134
134
|
# @note default_extended_context will be used for undefined keys.
|
135
135
|
#
|
136
|
+
# @param [String] task_name the target Task name.
|
136
137
|
# @return [Hash] the Task custom extended context.
|
137
|
-
def extended_context
|
138
|
+
def extended_context(task_name)
|
138
139
|
(self.params[task_name] || {})['extended_context']
|
139
140
|
end
|
140
141
|
|
@@ -143,8 +144,8 @@ module Henry
|
|
143
144
|
#
|
144
145
|
# @param [String] task_name the target Task name.
|
145
146
|
# @return [Hash] the Task custom execution_context.
|
146
|
-
def task_extended_context
|
147
|
-
self.default_extended_context.merge(self.extended_context
|
147
|
+
def task_extended_context(task_name)
|
148
|
+
self.default_extended_context.merge(self.extended_context(task_name) || {})
|
148
149
|
end
|
149
150
|
|
150
151
|
|