Sha256: d12da5302e2decebdc97bb941bfb8f7f389a84e0ef60a914dceeb676aee24186

Contents?: true

Size: 486 Bytes

Versions: 3

Compression:

Stored size: 486 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, **)
          super(**)
          @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

3 entries across 3 versions & 1 rubygems

Version Path
pennyworth-14.2.1 lib/pennyworth/cli/actions/standard_errors.rb
pennyworth-14.2.0 lib/pennyworth/cli/actions/standard_errors.rb
pennyworth-14.1.2 lib/pennyworth/cli/actions/standard_errors.rb