Module: Travis::Stalker
- Defined in:
- lib/travis/stalker.rb,
lib/travis/stalker/cli.rb,
lib/travis/stalker/charlie.rb,
lib/travis/stalker/version.rb
Defined Under Namespace
Modules: CLI, Logger Classes: Charlie
Constant Summary collapse
- VERSION =
"0.0.4"
Class Method Summary collapse
-
.instrument_with(logger) ⇒ Object
Public: Allows the user to specify a logger for the log messages that Travis::Stalker produces.
-
.log(data, &blk) ⇒ Object
Internal: Top level log method for use by Travis::Stalker.
-
.logger ⇒ Object
Public: The logging location.
Class Method Details
.instrument_with(logger) ⇒ Object
24 25 26 |
# File 'lib/travis/stalker.rb', line 24 def self.instrument_with(logger) @logger = logger end |
.log(data, &blk) ⇒ Object
Internal: Top level log method for use by Travis::Stalker
data = Logging data (typically a hash) blk = block to execute
Returns the response from calling the logger with the arguments
34 35 36 |
# File 'lib/travis/stalker.rb', line 34 def self.log(data, &blk) logger.call({ 'travis-stalker' => true }.merge(data), &blk) end |