Class: NxtPipeline::Logger
- Inherits:
-
Object
- Object
- NxtPipeline::Logger
- Defined in:
- lib/nxt_pipeline/logger.rb
Instance Attribute Summary collapse
-
#log ⇒ Object
Returns the value of attribute log.
Instance Method Summary collapse
- #call(step) ⇒ Object
-
#initialize ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
#initialize ⇒ Logger
Returns a new instance of Logger.
3 4 5 |
# File 'lib/nxt_pipeline/logger.rb', line 3 def initialize @log = {} end |
Instance Attribute Details
#log ⇒ Object
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 |