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.

Direct Known Subclasses

MinimalOutput, Notifier, ProgressBar, ReportGenerator

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



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

def file_begin(file)
end

#file_end(file, output) ⇒ Object

Fired when a file is finished



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

def file_end(file, output)
end

#testing_begin(files) ⇒ Object

Fired when testing has started



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

def testing_begin(files)
end

#testing_endObject

Fired when testing finishes



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

def testing_end
end