Class: Henry::Container
- Inherits:
-
Object
- Object
- Henry::Container
- Defined in:
- lib/henry/container.rb,
lib/henry/container/version.rb
Overview
Henry Container
Constant Summary collapse
- VERSION =
Current Gem version
'0.0.67'
Instance Method Summary collapse
-
#execute ⇒ Object
Executes the loaded tasks and stores their results.
-
#initialize(opts) ⇒ Container
constructor
Initialize the Container with the given options.
Constructor Details
#initialize(opts) ⇒ Container
Initialize the Container with the given options
17 18 19 |
# File 'lib/henry/container.rb', line 17 def initialize(opts) @opts = opts end |
Instance Method Details
#execute ⇒ Object
Executes the loaded tasks and stores their results.
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/henry/container.rb', line 22 def execute self.before_execution self.tasks.select {|task| task.enabled?}.each do |task| task.configure({},self.task_extended_context(task.name)) self.task_params(task.name).each do |task_params| task.export_params(task_params) task.before_execute task.execute task.after_execute self.tasks_results << task.report end end self.update_results self.dump_results end |