Class: TheRunner::Runner::Base
- Inherits:
-
Object
- Object
- TheRunner::Runner::Base
- Defined in:
- lib/the_runner/runner/base.rb
Direct Known Subclasses
Constant Summary collapse
- @@default_options =
{}
Instance Method Summary collapse
-
#initialize(server, options = {}, logger = nil) ⇒ Base
constructor
TODO Not quite sure about logger injection here.
- #log(message) ⇒ Object
Constructor Details
#initialize(server, options = {}, logger = nil) ⇒ Base
TODO Not quite sure about logger injection here.
7 8 9 10 |
# File 'lib/the_runner/runner/base.rb', line 7 def initialize(server, = {}, logger = nil) @server, = server, .merge() @logger = logger end |
Instance Method Details
#log(message) ⇒ Object
11 12 13 14 |
# File 'lib/the_runner/runner/base.rb', line 11 def log() # TODO Of course there should be more levels of log than just debug. @logger.debug(sprintf('[%s] %s', @server.hostname, )) unless @logger.nil? end |