Class: Duty::TaskRunner
- Inherits:
-
Object
- Object
- Duty::TaskRunner
- Defined in:
- lib/duty/task_runner.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(view, input, registry) ⇒ TaskRunner
constructor
A new instance of TaskRunner.
- #run ⇒ Object
Constructor Details
#initialize(view, input, registry) ⇒ TaskRunner
Returns a new instance of TaskRunner.
3 4 5 6 7 |
# File 'lib/duty/task_runner.rb', line 3 def initialize(view, input, registry) @view = view @input = input @plugins = registry.plugins end |
Class Method Details
.run(view, input, plugins) ⇒ Object
9 10 11 |
# File 'lib/duty/task_runner.rb', line 9 def self.run(view, input, plugins) self.new(view, input, plugins).run end |
Instance Method Details
#run ⇒ Object
13 14 15 |
# File 'lib/duty/task_runner.rb', line 13 def run task_class.new(task_input, view).run end |