Module: CamaleonCms::TaskReporter

Defined in:
lib/camaleon_cms/task_reporter.rb

Overview

Output seam for operator-run repair tasks: logs for the record AND prints to stdout, because an operator runs these from a terminal, where Rails.logger writes to a file they are not watching — a logger-only task looks like a no-op. Shared so the reporting rule cannot drift between the repair tasks.

Class Method Summary collapse

Class Method Details

.call(msg) ⇒ Object



9
10
11
12
# File 'lib/camaleon_cms/task_reporter.rb', line 9

def self.call(msg)
  Rails.logger.info(msg)
  puts msg # rubocop:disable Rails/Output -- terminal output for the operator is the point
end