Sha256: 6c0006ad052118b0d3a2bddb16eb86b9ca21e560717859772251ff6002c7d184
Contents?: true
Size: 580 Bytes
Versions: 9
Compression:
Stored size: 580 Bytes
Contents
# frozen_string_literal: true module Pennyworth module CLI module Actions # Handles the RubyGems action. class RubyGems def initialize processor: Processor.for_gems, container: Container @processor = processor @container = container end def call endpoint processor.call(endpoint) .to_json .then { |json| logger.info json } end private attr_reader :processor, :container def logger = container[__method__] end end end end
Version data entries
9 entries across 9 versions & 1 rubygems