Sha256: 9db520241170c28ef2e941b9ca692813ac06cb97af2c4f5aed1846e1f9c86083

Contents?: true

Size: 459 Bytes

Versions: 1

Compression:

Stored size: 459 Bytes

Contents

# frozen_string_literal: true

module Pennyworth
  module CLI
    module Actions
      # Handles the RubyGems action.
      class RubyGems
        include Pennyworth::Import[:kernel]

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

        def call(endpoint) = kernel.puts processor.call(endpoint).to_json

        private

        attr_reader :processor
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pennyworth-14.3.0 lib/pennyworth/cli/actions/ruby_gems.rb