Sha256: a879ebdf8bdbe740e4de252af12733b248974f95a2f1d59c7a51f892ad1c20b6

Contents?: true

Size: 503 Bytes

Versions: 1

Compression:

Stored size: 503 Bytes

Contents

# frozen_string_literal: true

module Pennyworth
  module CLI
    module Actions
      module System
        # Handles the system errors action.
        class Errors
          include Pennyworth::Import[:kernel]

          def initialize(processor: Processor.for_system_errors, **)
            super(**)
            @processor = processor
          end

          def call = kernel.puts processor.call.to_json

          private

          attr_reader :processor
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pennyworth-14.3.0 lib/pennyworth/cli/actions/system/errors.rb