Class: Duty::TaskRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/duty/task_runner.rb

Class Method Summary collapse

Instance Method Summary collapse

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

#runObject



13
14
15
# File 'lib/duty/task_runner.rb', line 13

def run
  task_class.new(task_input, view).run
end