class Bosh::Deployer::LoggerRenderer
Attributes
index[RW]
logger[R]
stage[RW]
total[RW]
Public Class Methods
new(logger)
click to toggle source
# File lib/bosh/deployer/logger_renderer.rb, line 5 def initialize(logger) @logger = logger enter_stage('Deployer', 0) end
Public Instance Methods
enter_stage(stage, total)
click to toggle source
# File lib/bosh/deployer/logger_renderer.rb, line 10 def enter_stage(stage, total) @stage = stage @total = total @index = 0 end
update(state, task)
click to toggle source
# File lib/bosh/deployer/logger_renderer.rb, line 16 def update(state, task) logger.info("#{@stage} - #{state} #{task}") @index += 1 if state == :finished end