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

Version Path
pennyworth-14.1.1 lib/pennyworth/cli/actions/standard_errors.rb
pennyworth-14.1.0 lib/pennyworth/cli/actions/standard_errors.rb
pennyworth-14.0.0 lib/pennyworth/cli/actions/standard_errors.rb
pennyworth-13.8.0 lib/pennyworth/cli/actions/standard_errors.rb
pennyworth-13.7.0 lib/pennyworth/cli/actions/standard_errors.rb
pennyworth-13.6.0 lib/pennyworth/cli/actions/standard_errors.rb
pennyworth-13.5.0 lib/pennyworth/cli/actions/standard_errors.rb
pennyworth-13.4.0 lib/pennyworth/cli/actions/standard_errors.rb
pennyworth-13.3.0 lib/pennyworth/cli/actions/standard_errors.rb
pennyworth-13.2.0 lib/pennyworth/cli/actions/standard_errors.rb