Module: Retest

Defined in:
lib/retest.rb,
lib/retest/setup.rb,
lib/retest/prompt.rb,
lib/retest/sounds.rb,
lib/retest/command.rb,
lib/retest/options.rb,
lib/retest/program.rb,
lib/retest/runners.rb,
lib/retest/version.rb,
lib/retest/repository.rb,
lib/retest/file_system.rb,
lib/retest/command/rake.rb,
lib/retest/command/ruby.rb,
lib/retest/command/rails.rb,
lib/retest/command/rspec.rb,
lib/retest/runners/runner.rb,
lib/retest/version_control.rb,
lib/retest/matching_options.rb,
lib/retest/runners/test_runner.rb,
lib/retest/version_control/git.rb,
lib/retest/matching_options/path.rb,
lib/retest/runners/change_runner.rb,
lib/retest/runners/variable_runner.rb,
lib/retest/runners/cached_test_file.rb,
lib/retest/version_control/no_version_control.rb

Defined Under Namespace

Modules: FileSystem, Runners, Sounds, VersionControl Classes: Command, Error, MatchingOptions, Options, Program, Prompt, Repository, Setup

Constant Summary collapse

VERSION =
"1.13.2"

Class Method Summary collapse

Class Method Details

.listen(options, listener: Listen) ⇒ Object



24
25
26
27
28
# File 'lib/retest.rb', line 24

def self.listen(options, listener: Listen)
  listener.to('.', only: options.extension, relative: true, force_polling: options.force_polling?) do |modified, added, removed|
    yield modified, added, removed
  end.start
end