Sha256: 181c9568e40c0715d2fffdc3a54513195bcf72b8ae7f23f83075bb5bb2ff4750
Contents?: true
Size: 509 Bytes
Versions: 10
Compression:
Stored size: 509 Bytes
Contents
# frozen_string_literal: true module Pennyworth module CLI module Actions # Handles the system errors action. class StandardErrors include Pennyworth::Import[:logger] def initialize processor: Processor.for_standard_errors, **dependencies super(**dependencies) @processor = processor end def call = processor.call.to_json.then { |json| logger.info { json } } private attr_reader :processor end end end end
Version data entries
10 entries across 10 versions & 1 rubygems