Class: NxtPipeline::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/nxt_pipeline/logger.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLogger

Returns a new instance of Logger.



3
4
5
# File 'lib/nxt_pipeline/logger.rb', line 3

def initialize
  @log = {}
end

Instance Attribute Details

#logObject

Returns the value of attribute log.



7
8
9
# File 'lib/nxt_pipeline/logger.rb', line 7

def log
  @log
end

Instance Method Details

#call(step) ⇒ Object



9
10
11
# File 'lib/nxt_pipeline/logger.rb', line 9

def call(step)
  log[step.to_s] = step.status
end