Sha256: 66b24e7ec02d26f94c9391814a6fd3e81c2dc0ff8b77d9ae742831674de438b3

Contents?: true

Size: 508 Bytes

Versions: 9

Compression:

Stored size: 508 Bytes

Contents

# frozen_string_literal: true

module Pennyworth
  module CLI
    module Actions
      # Handles the encodings action.
      class Encodings
        def initialize processor: Processor.for_encodings, container: Container
          @processor = processor
          @container = container
        end

        def call = processor.call.to_json.then { |json| logger.info json }

        private

        attr_reader :processor, :container

        def logger = container[__method__]
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pennyworth-11.2.2 lib/pennyworth/cli/actions/encodings.rb
pennyworth-11.2.1 lib/pennyworth/cli/actions/encodings.rb
pennyworth-11.2.0 lib/pennyworth/cli/actions/encodings.rb
pennyworth-11.1.3 lib/pennyworth/cli/actions/encodings.rb
pennyworth-11.1.2 lib/pennyworth/cli/actions/encodings.rb
pennyworth-11.1.1 lib/pennyworth/cli/actions/encodings.rb
pennyworth-11.1.0 lib/pennyworth/cli/actions/encodings.rb
pennyworth-11.0.1 lib/pennyworth/cli/actions/encodings.rb
pennyworth-11.0.0 lib/pennyworth/cli/actions/encodings.rb