Sha256: cfa500de229df8122fdf69499bf1a590f5de9783133bd93d33aa6b084e895b47
Contents?: true
Size: 584 Bytes
Versions: 7
Compression:
Stored size: 584 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
7 entries across 7 versions & 1 rubygems