class Guard::Runner
def _run_first_task_found(guard, tasks, task_param)
-
task_param(Object) -- the param to pass to each task -
tasks(Array) -- the tasks to run the first among -
guard(Guard::Plugin) -- the Guard plugin to run the first found task on
def _run_first_task_found(guard, tasks, task_param) tasks.each do |task| if guard.respond_to?(task) run_supervised_task(guard, task, task_param) break else ::Guard::UI.debug "Trying to run #{ guard.class.name }##{ task.to_s } with #{ task_param.inspect }" end end end