Class: Hydra::RunnerListener::Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/hydra/runner_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/runner_listener/abstract.rb', line 10

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

Instance Method Details

#runner_begin(runner) ⇒ Object

Fired by the runner just before requesting the first file



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

def runner_begin( runner )
end

#runner_end(runner) ⇒ Object

Fired by the runner just after stoping



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

def runner_end( runner )
end