class Hydra::Listener::Abstract

Abstract listener that implements all the events but does nothing.

Public Class Methods

new(output = $stdout) click to toggle source

Create a new listener.

Output: The IO object for outputting any information. Defaults to STDOUT, but you could pass a file in, or STDERR

# File lib/hydra/listener/abstract.rb, line 10
def initialize(output = $stdout)
  @output = output
end

Public Instance Methods

file_begin(file) click to toggle source

Fired when a file is started

# File lib/hydra/listener/abstract.rb, line 31
def file_begin(file)
end
file_end(file, output) click to toggle source

Fired when a file is finished

# File lib/hydra/listener/abstract.rb, line 35
def file_end(file, output)
end
testing_begin(files) click to toggle source

Fired when testing has started

# File lib/hydra/listener/abstract.rb, line 15
def testing_begin(files)
end
testing_end() click to toggle source

Fired when testing finishes, after the workers shutdown

# File lib/hydra/listener/abstract.rb, line 19
def testing_end
end
worker_begin(worker) click to toggle source

Fired after runner processes have been started

# File lib/hydra/listener/abstract.rb, line 23
def worker_begin(worker)
end
worker_end(worker) click to toggle source

Fired before shutting down the worker

# File lib/hydra/listener/abstract.rb, line 27
def worker_end(worker)
end