class Guard::Runner
def run(task, scope = {})
- See: self.run_supervised_task -
Parameters:
-
scopes
(Hash
) -- either the Guard plugin or the group to run the task on -
task
(Symbol
) -- the task to run
def run(task, scope = {}) Lumberjack.unit_of_work do _scoped_plugins(scope) do |guard| run_supervised_task(guard, task) if guard.respond_to?(task) end end end