Method: Guard::Reek#run_on_modifications

Defined in:
lib/guard/reek.rb

#run_on_modifications(paths) ⇒ Object

Called on file(s) modifications that the Guard plugin watches.

Parameters:

  • paths (Array<String>)

    the changes files or paths

Returns:

  • (Object)

    the task result

Raises:

  • (:task_has_failed)

    when run_on_modifications has failed



88
89
90
91
92
# File 'lib/guard/reek.rb', line 88

def run_on_modifications(paths)
  runner.run paths
rescue
  throw :task_has_failed
end