henry-container 0.1.10 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ module Henry
3
3
  class Container
4
4
 
5
5
  # Current Gem version
6
- VERSION = '0.1.10'
6
+ VERSION = '0.1.11'
7
7
 
8
8
  end
9
9
 
@@ -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
 
@@ -46,8 +46,8 @@ module Henry
46
46
  t.cucumber_opts = "#{self.default_options} #{extended_context['options']}"
47
47
  end
48
48
  end
49
-
50
- self.export_params(params)
49
+
50
+ super
51
51
  end
52
52
 
53
53
  # Returns the custom cucumber_opts that user may have passed.
@@ -50,7 +50,7 @@ CODE
50
50
  t.ruby_opts << "-r ./preconfig"
51
51
  end
52
52
 
53
- self.export_params(params)
53
+ super
54
54
  end
55
55
 
56
56
  end
@@ -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
@@ -49,7 +49,7 @@ module Henry
49
49
  end
50
50
  end
51
51
 
52
- self.export_params(params)
52
+ super
53
53
  end
54
54
 
55
55
  protected
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.10
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-05 00:00:00.000000000 Z
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: