henry-container 0.1.10 → 0.1.11
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/execution.rb
CHANGED
@@ -4,7 +4,7 @@ module Henry
|
|
4
4
|
class Execution
|
5
5
|
|
6
6
|
# Accessors for task_name, code, message, output and backtrace.
|
7
|
-
attr_accessor :task_name, :code, :message, :output, :backtrace, :log
|
7
|
+
attr_accessor :task_name, :code, :message, :output, :backtrace, :log, :params
|
8
8
|
|
9
9
|
# Returns the json ready hash report of the Task Execution
|
10
10
|
#
|
@@ -19,7 +19,8 @@ module Henry
|
|
19
19
|
backtrace: self.backtrace
|
20
20
|
},
|
21
21
|
log: self.log,
|
22
|
-
worker: `hostname`.strip
|
22
|
+
worker: `hostname`.strip,
|
23
|
+
params: self.params
|
23
24
|
}
|
24
25
|
end
|
25
26
|
|
data/lib/henry/task/rake_task.rb
CHANGED
@@ -35,6 +35,15 @@ module Henry
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
+
# Configures the Task.
|
39
|
+
#
|
40
|
+
# @param [Hash] params the task params.
|
41
|
+
# @param [Hash] extended_context task extended context.
|
42
|
+
def configure(params, extended_context={})
|
43
|
+
self.export_params(params)
|
44
|
+
self.execution.params = params
|
45
|
+
end
|
46
|
+
|
38
47
|
end
|
39
48
|
|
40
49
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -181,4 +181,3 @@ summary: The Ruby Container for Henry
|
|
181
181
|
test_files:
|
182
182
|
- spec/minitest_task_spec.rb
|
183
183
|
- spec/task/minitest_test_task.rb
|
184
|
-
has_rdoc:
|