Class: Hydra::Listener::Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/hydra/listener/abstract.rb

Overview

Abstract listener that implements all the events but does nothing.

Instance Method Summary collapse

Constructor Details

#initialize(output = $stdout) ⇒ Abstract

Create a new listener.

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


10
11
12
# File 'lib/hydra/listener/abstract.rb', line 10

def initialize(output = $stdout)
  @output = output
end

Instance Method Details

#file_begin(file) ⇒ Object

Fired when a file is started


31
32
# File 'lib/hydra/listener/abstract.rb', line 31

def file_begin(file)
end

#file_end(file, output) ⇒ Object

Fired when a file is finished


35
36
# File 'lib/hydra/listener/abstract.rb', line 35

def file_end(file, output)
end

#testing_begin(files) ⇒ Object

Fired when testing has started


15
16
# File 'lib/hydra/listener/abstract.rb', line 15

def testing_begin(files)
end

#testing_endObject

Fired when testing finishes, after the workers shutdown


19
20
# File 'lib/hydra/listener/abstract.rb', line 19

def testing_end
end

#worker_begin(worker) ⇒ Object

Fired after runner processes have been started


23
24
# File 'lib/hydra/listener/abstract.rb', line 23

def worker_begin(worker)
end

#worker_end(worker) ⇒ Object

Fired before shutting down the worker


27
28
# File 'lib/hydra/listener/abstract.rb', line 27

def worker_end(worker)
end