class Guard::RSpec
def _throw_if_failed
def _throw_if_failed throw :task_has_failed unless yield end
def initialize(options = {})
def initialize(options = {}) super @options = Options.with_defaults(options) Deprecator.warns_about_deprecated_options(@options) @runner = Runner.new(@options) end
def reload
def reload runner.reload end
def run_all
def run_all _throw_if_failed { runner.run_all } end
def run_on_modifications(paths)
def run_on_modifications(paths) return false if paths.empty? _throw_if_failed { runner.run(paths) } end
def start
def start Compat::UI.info "Guard::RSpec is running" run_all if options[:all_on_start] end