Sha256: fd041dd6be828ea0ada1f72e0f4c991f25d919b768c6d831f769bc1296febb14
Contents?: true
Size: 528 Bytes
Versions: 3
Compression:
Stored size: 528 Bytes
Contents
# frozen_string_literal: true module Pennyworth module CLI module Actions module System # Handles the system errors action. class Errors include Pennyworth::Import[:logger] def initialize(processor: Processor.for_system_errors, **) super(**) @processor = processor end def call = processor.call.to_json.then { |json| logger.info { json } } private attr_reader :processor end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pennyworth-14.2.1 | lib/pennyworth/cli/actions/system/errors.rb |
pennyworth-14.2.0 | lib/pennyworth/cli/actions/system/errors.rb |
pennyworth-14.1.2 | lib/pennyworth/cli/actions/system/errors.rb |