Sha256: e2db10b40c25d14611ba8fb0c67759aa055c1786914c38563cf8f83e80db52d3

Contents?: true

Size: 551 Bytes

Versions: 13

Compression:

Stored size: 551 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, **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
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
pennyworth-14.1.1 lib/pennyworth/cli/actions/system/errors.rb
pennyworth-14.1.0 lib/pennyworth/cli/actions/system/errors.rb
pennyworth-14.0.0 lib/pennyworth/cli/actions/system/errors.rb
pennyworth-13.8.0 lib/pennyworth/cli/actions/system/errors.rb
pennyworth-13.7.0 lib/pennyworth/cli/actions/system/errors.rb
pennyworth-13.6.0 lib/pennyworth/cli/actions/system/errors.rb
pennyworth-13.5.0 lib/pennyworth/cli/actions/system/errors.rb
pennyworth-13.4.0 lib/pennyworth/cli/actions/system/errors.rb
pennyworth-13.3.0 lib/pennyworth/cli/actions/system/errors.rb
pennyworth-13.2.0 lib/pennyworth/cli/actions/system/errors.rb
pennyworth-13.1.0 lib/pennyworth/cli/actions/system/errors.rb
pennyworth-13.0.1 lib/pennyworth/cli/actions/system/errors.rb
pennyworth-13.0.0 lib/pennyworth/cli/actions/system/errors.rb